kopia lustrzana https://github.com/wagtail/wagtail
Added site_name to model
rodzic
9e8c2c2d5f
commit
df5433258e
|
@ -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."
|
||||
),
|
||||
),
|
||||
]
|
|
@ -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'),
|
||||
|
|
Ładowanie…
Reference in New Issue