|
|
|
@ -127,7 +127,7 @@ class WorkflowMixin(models.Model):
|
|
|
|
|
ordering = ['-publication_datetime'] # Most recent first |
|
|
|
|
|
|
|
|
|
@property |
|
|
|
|
def worflow_status(self): |
|
|
|
|
def workflow_status(self): |
|
|
|
|
now = timezone.now() |
|
|
|
|
if not self.is_published or self.publication_datetime > now: |
|
|
|
|
return 'unpublished' |
|
|
|
|