Add single_version field to projects.models.

refactor-builder
Tom Offermann 2013-12-07 17:43:53 -08:00
parent 5e56cf3e5f
commit 85de6253a8
1 changed files with 3 additions and 0 deletions

View File

@ -121,6 +121,9 @@ class Project(models.Model):
'themes" target="_blank">%s</a>') % _('Examples')) 'themes" target="_blank">%s</a>') % _('Examples'))
suffix = models.CharField(_('Suffix'), max_length=10, editable=False, suffix = models.CharField(_('Suffix'), max_length=10, editable=False,
default='.rst') default='.rst')
single_version = models.BooleanField(
_('Single version'), default=False,
help_text=_('A single version site has no translations and only a single version.'))
default_version = models.CharField( default_version = models.CharField(
_('Default version'), max_length=255, default='latest', _('Default version'), max_length=255, default='latest',
help_text=_('The version of your project that / redirects to')) help_text=_('The version of your project that / redirects to'))