0001_initial.py 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. # -*- coding: utf-8 -*-
  2. from __future__ import unicode_literals
  3. from django.db import models, migrations
  4. class Migration(migrations.Migration):
  5. dependencies = [
  6. ('sites', '0001_initial'),
  7. ]
  8. operations = [
  9. migrations.CreateModel(
  10. name='FlatPage',
  11. fields=[
  12. ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
  13. ('url', models.CharField(max_length=100, verbose_name='URL', db_index=True)),
  14. ('title', models.CharField(max_length=200, verbose_name='title')),
  15. ('content', models.TextField(verbose_name='content', blank=True)),
  16. ('enable_comments', models.BooleanField(default=False, verbose_name='enable comments')),
  17. ('template_name', models.CharField(help_text="Example: 'flatpages/contact_page.html'. If this isn't provided, the system will use 'flatpages/default.html'.", max_length=70, verbose_name='template name', blank=True)),
  18. ('registration_required', models.BooleanField(default=False, help_text='If this is checked, only logged-in users will be able to view the page.', verbose_name='registration required')),
  19. ('sites', models.ManyToManyField(to='sites.Site')),
  20. ],
  21. options={
  22. 'ordering': ('url',),
  23. 'db_table': 'django_flatpage',
  24. 'verbose_name': 'flat page',
  25. 'verbose_name_plural': 'flat pages',
  26. },
  27. bases=(models.Model,),
  28. ),
  29. ]