I'm currently using a more complex publishing workflow than the 2 options
(Draft and Published) offered by the Displayable model, I need some pages
to be in an in-between mode called "Pending approval".
There isn't really an easy way to add this extra status other than editing
core/models.py and edit CONTENT_STATUS_CHOICES, do you think it's a good
idea to make that variable more configurable by adding options from
settings?
Here is what I'm thinking to do:
# core/models.py L211
> CONTENT_STATUS_CHOICES = (
> (CONTENT_STATUS_DRAFT, _("Draft")),
> (CONTENT_STATUS_PUBLISHED, _("Published")),
> )
> CONTENT_STATUS_CHOICES = CONTENT_STATUS_CHOICES + getattr(settings,
> 'EXTRA_STATUS_CHOICES', ())
Then in the settings, we could have:
CONTENT_STATUS_PENDING = 3
EXTRA_STATUS_CHOICES = (
(CONTENT_STATUS_PENDING, _("Pending Approval")),
)
If you know a better way, I would like to hear it. Otherwise maybe I'll
create a PR for that.
Thanks.
--
You received this message because you are subscribed to the Google Groups
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.