From 212752f46ed39d98a7332f3f7300174c2ca1cebb Mon Sep 17 00:00:00 2001 From: Daniel Quinn Date: Mon, 8 Feb 2016 17:28:59 +0000 Subject: [PATCH] Fixt the tags to be optional --- src/documents/migrations/0008_document_file_type.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/documents/migrations/0008_document_file_type.py b/src/documents/migrations/0008_document_file_type.py index 6d4bd2775..1d542bea7 100644 --- a/src/documents/migrations/0008_document_file_type.py +++ b/src/documents/migrations/0008_document_file_type.py @@ -18,4 +18,10 @@ class Migration(migrations.Migration): field=models.CharField(choices=[('pdf', 'PDF'), ('png', 'PNG'), ('jpg', 'JPG'), ('gif', 'GIF'), ('tiff', 'TIFF')], default='pdf', editable=False, max_length=4), preserve_default=False, ), + migrations.AlterField( + model_name='document', + name='tags', + field=models.ManyToManyField(blank=True, related_name='documents', to='documents.Tag'), + ), ] +