Browse Source

Typo.

master
Erik Stein 3 years ago
parent
commit
bddfa3ab8a
  1. 2
      shared/utils/models/workflow.py

2
shared/utils/models/workflow.py

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

Loading…
Cancel
Save