mirror of
https://github.com/jazzband/django-dbtemplates.git
synced 2026-03-16 22:20:28 +00:00
allow blank sites
Signed-off-by: Jannis Leidel <jannis@leidel.info>
This commit is contained in:
parent
1415896b3d
commit
825e3b95ff
1 changed files with 2 additions and 1 deletions
|
|
@ -22,7 +22,8 @@ class Template(models.Model):
|
|||
name = models.CharField(_('name'), max_length=100,
|
||||
help_text=_("Example: 'flatpages/default.html'"))
|
||||
content = models.TextField(_('content'), blank=True)
|
||||
sites = models.ManyToManyField(Site, verbose_name=_('sites'))
|
||||
sites = models.ManyToManyField(Site, verbose_name=_('sites'), blank=True,
|
||||
null=True)
|
||||
creation_date = models.DateTimeField(_('creation date'),
|
||||
default=datetime.now)
|
||||
last_changed = models.DateTimeField(_('last changed'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue