aboutsummaryrefslogtreecommitdiffstats
path: root/alphabetlearning/resources
diff options
context:
space:
mode:
Diffstat (limited to 'alphabetlearning/resources')
-rw-r--r--alphabetlearning/resources/factories.py2
-rw-r--r--alphabetlearning/resources/migrations/0003_remove_resource_price.py17
-rw-r--r--alphabetlearning/resources/models.py14
3 files changed, 25 insertions, 8 deletions
diff --git a/alphabetlearning/resources/factories.py b/alphabetlearning/resources/factories.py
index e15a105..47d86e2 100644
--- a/alphabetlearning/resources/factories.py
+++ b/alphabetlearning/resources/factories.py
@@ -36,7 +36,7 @@ class ResourceModelFactory(factory.django.DjangoModelFactory):
model = Resource
name = factory.Sequence(lambda n: f"Default Resource {n}")
- price = factory.Faker("pydecimal", left_digits=4, right_digits=2, positive=True)
+ # price = factory.Faker("pydecimal", left_digits=4, right_digits=2, positive=True)
thumbnail_filenames = factory.List(
[factory.Faker("file_name", extension="jpg") for _ in range(3)]
)
diff --git a/alphabetlearning/resources/migrations/0003_remove_resource_price.py b/alphabetlearning/resources/migrations/0003_remove_resource_price.py
new file mode 100644
index 0000000..3bcd707
--- /dev/null
+++ b/alphabetlearning/resources/migrations/0003_remove_resource_price.py
@@ -0,0 +1,17 @@
+# Generated by Django 5.1.4 on 2025-01-06 19:40
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('resources', '0002_resource_price'),
+ ]
+
+ operations = [
+ migrations.RemoveField(
+ model_name='resource',
+ name='price',
+ ),
+ ]
diff --git a/alphabetlearning/resources/models.py b/alphabetlearning/resources/models.py
index f5c3223..3f4ee8c 100644
--- a/alphabetlearning/resources/models.py
+++ b/alphabetlearning/resources/models.py
@@ -38,13 +38,13 @@ DESC_HELP_TEXT = """
class Resource(models.Model):
name = models.CharField(max_length=255, null=False)
stripe_product_id = models.CharField(max_length=100)
- price = models.DecimalField(
- max_digits=6,
- decimal_places=2,
- default=0.00,
- null=False,
- blank=False,
- )
+ # price = models.DecimalField(
+ # max_digits=6,
+ # decimal_places=2,
+ # default=0.00,
+ # null=False,
+ # blank=False,
+ # )
thumbnail_filenames = models.JSONField(
null=False,
verbose_name="Thumbnail filenames",