Add show_version_warning field to Project model

remove-default-role
Santos Gallegos 2018-02-11 18:32:24 -05:00
parent 076539117f
commit 71799ae633
1 changed files with 4 additions and 0 deletions

View File

@ -160,6 +160,10 @@ class Project(models.Model):
allow_promos = models.BooleanField(
_('Allow paid advertising'), default=True, help_text=_(
'If unchecked, users will still see community ads.'))
show_version_warning = models.BooleanField(
_('Show version warning'), default=True,
help_text=_('Show warning banner in non-stable versions.')
)
# Sphinx specific build options.
enable_epub_build = models.BooleanField(