diff --git a/accounting/migrations/0025_add_child_product_descriptoin.py b/accounting/migrations/0025_add_child_product_descriptoin.py new file mode 100644 index 000000000..ef34a71ba --- /dev/null +++ b/accounting/migrations/0025_add_child_product_descriptoin.py @@ -0,0 +1,24 @@ +# Generated by Django 2.2.24 on 2023-08-12 14:13 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('accounting', '0024_add_child_product_model'), + ] + + operations = [ + migrations.AddField( + model_name='childproduct', + name='description', + field=models.TextField(blank=True, null=True), + ), + migrations.AlterField( + model_name='product', + name='revenue', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='accounting.Revenue'), + ), + ] diff --git a/accounting/models.py b/accounting/models.py index 9448d05b4..5d2e81100 100644 --- a/accounting/models.py +++ b/accounting/models.py @@ -51,6 +51,7 @@ def __str__(self): class ChildProduct(models.Model): quantity = models.PositiveIntegerField(blank=False) + description = models.TextField(blank=True, null=True) child_product = models.ForeignKey("Product", blank=False, on_delete=models.CASCADE) def __str__(self):