aboutsummaryrefslogtreecommitdiffstats
path: root/alphabetlearning/resources/migrations/0002_resource_price.py
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2025-01-06 17:14:10 +0000
committerMatthew Lemon <y@yulqen.org>2025-01-06 17:14:10 +0000
commitd98250037d43cd6a0d5f613ea70bb57bd17c1ab1 (patch)
tree525d3e95fd88fc9dad653afaceb675b85a803f06 /alphabetlearning/resources/migrations/0002_resource_price.py
parentb38b3b9392a62b048bef37d577b95e0286c99f7d (diff)
Adds price to Resource model
- the test_forms tests now pass - fixed some imports too here
Diffstat (limited to 'alphabetlearning/resources/migrations/0002_resource_price.py')
-rw-r--r--alphabetlearning/resources/migrations/0002_resource_price.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/alphabetlearning/resources/migrations/0002_resource_price.py b/alphabetlearning/resources/migrations/0002_resource_price.py
new file mode 100644
index 0000000..899be2c
--- /dev/null
+++ b/alphabetlearning/resources/migrations/0002_resource_price.py
@@ -0,0 +1,18 @@
+# Generated by Django 5.1.4 on 2025-01-06 17:13
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('resources', '0001_initial'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='resource',
+ name='price',
+ field=models.DecimalField(decimal_places=2, default=0.0, max_digits=6),
+ ),
+ ]