Added site_name to model

pull/1830/merge
Timo Rieber 2015-10-10 20:39:55 +02:00 zatwierdzone przez Matt Westcott
rodzic 9e8c2c2d5f
commit df5433258e
2 zmienionych plików z 29 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0021_capitalizeverbose'),
]
operations = [
migrations.AddField(
model_name='site',
name='site_name',
field=models.CharField(
verbose_name='site name', null=True, blank=True, max_length=255,
help_text="Human-readable name for the site."
),
),
]

Wyświetl plik

@ -67,6 +67,13 @@ class Site(models.Model):
" (e.g. development on port 8000). Does not affect request handling (so port forwarding still works)."
)
)
site_name = models.CharField(
verbose_name=_('site name'),
max_length=255,
null=True,
blank=True,
help_text=_("Human-readable name for the site.")
)
root_page = models.ForeignKey('Page', verbose_name=_('root page'), related_name='sites_rooted_here')
is_default_site = models.BooleanField(
verbose_name=_('is default site'),