X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/215471e368740a54edf403f53e3441ec2b541062..56020b3bae83dac682be9635536d138edad22f9d:/apps/catalogue/models/document.py diff --git a/apps/catalogue/models/document.py b/apps/catalogue/models/document.py index 38c21100..4f084804 100755 --- a/apps/catalogue/models/document.py +++ b/apps/catalogue/models/document.py @@ -26,6 +26,8 @@ class Document(Ref): assigned_to = models.ForeignKey(settings.AUTH_USER_MODEL, null=True, related_name='assignments') deleted = models.BooleanField(default=False) 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.