You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

0001_initial.py 1.7KB

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