Make item description optional

newer-dal
LEdoian 4 years ago
parent 3b90437afc
commit 330bdf27d8

@ -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.'),
),
]

@ -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...

Loading…
Cancel
Save