X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/31006b86a2e9883d8a4c5fe18128821b325773ab..18b53f03ffd1620e2f3f5b1c17e7dd12c6a6afa6:/apps/catalogue/models/document.py?ds=sidebyside diff --git a/apps/catalogue/models/document.py b/apps/catalogue/models/document.py index d58a4d1f..4f084804 100755 --- a/apps/catalogue/models/document.py +++ b/apps/catalogue/models/document.py @@ -25,7 +25,9 @@ class Document(Ref): stage = models.CharField(_('stage'), max_length=128, blank=True, default=STAGES[0]) assigned_to = models.ForeignKey(settings.AUTH_USER_MODEL, null=True, related_name='assignments') deleted = models.BooleanField(default=False) - tags = models.ManyToManyField(Tag) + tags = models.ManyToManyField(Tag, blank=True) + # we need to know if it were ever published (for notifications) + published = models.BooleanField(default=False) # Where to cache searchable stuff from metadata? # Probably in some kind of search index.