From 330bdf27d8e5a83a30ce2ac28d188b784aa54174 Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Tue, 16 Feb 2021 05:33:54 +0100 Subject: [PATCH] Make item description optional --- wishlist/migrations/0003_auto_20210216_0433.py | 18 ++++++++++++++++++ wishlist/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 wishlist/migrations/0003_auto_20210216_0433.py diff --git a/wishlist/migrations/0003_auto_20210216_0433.py b/wishlist/migrations/0003_auto_20210216_0433.py new file mode 100644 index 0000000..70b71bc --- /dev/null +++ b/wishlist/migrations/0003_auto_20210216_0433.py @@ -0,0 +1,18 @@ +# Generated by Django 3.1.6 on 2021-02-16 04:33 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('wishlist', '0002_auto_20210216_0430'), + ] + + operations = [ + migrations.AlterField( + model_name='wisheditem', + name='description', + field=models.TextField(blank=True, help_text='Detailed description of the item, for example its specification.'), + ), + ] diff --git a/wishlist/models.py b/wishlist/models.py index 6d4c997..9d3bec3 100644 --- a/wishlist/models.py +++ b/wishlist/models.py @@ -18,7 +18,7 @@ class WishedItem(models.Model): id = models.AutoField(primary_key=True) name = models.TextField(help_text="Name of the wished item.") - description = models.TextField(help_text="Detailed description of the item, for example its specification.") + description = models.TextField(blank=True, help_text="Detailed description of the item, for example its specification.") wishlists = models.ManyToManyField(WishList, related_name='wishes', help_text="Wishlists that this wish should be part of.") # FIXME: create more sensible name...