0005_aboutlocationrelationship.py 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. # -*- coding: utf-8 -*-
  2. # Generated by Django 1.10.5 on 2017-02-09 17:06
  3. from __future__ import unicode_literals
  4. from django.db import migrations, models
  5. import django.db.models.deletion
  6. import modelcluster.fields
  7. class Migration(migrations.Migration):
  8. dependencies = [
  9. ('locations', '0002_auto_20170209_1651'),
  10. ('base', '0003_auto_20170209_1651'),
  11. ]
  12. operations = [
  13. migrations.CreateModel(
  14. name='AboutLocationRelationship',
  15. fields=[
  16. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  17. ('sort_order', models.IntegerField(blank=True, editable=False, null=True)),
  18. ('locations', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='about_location_relationship', to='locations.LocationPage')),
  19. ('page', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='location_about_relationship', to='base.AboutPage')),
  20. ],
  21. options={
  22. 'ordering': ['sort_order'],
  23. 'abstract': False,
  24. },
  25. ),
  26. ]