0023_auto_20210908_1702.py 1.3 KB

123456789101112131415161718192021222324
  1. # Generated by Django 3.2.7 on 2021-09-08 21:02
  2. from django.db import migrations, models
  3. import django.db.models.deletion
  4. class Migration(migrations.Migration):
  5. dependencies = [
  6. ('wagtailcrx', '0022_auto_20210731_1853'),
  7. ]
  8. operations = [
  9. migrations.AddField(
  10. model_name='coderedpage',
  11. name='index_order_by_classifier',
  12. field=models.ForeignKey(blank=True, help_text='Child pages will first be sorted following the order of this classifier’s terms (from Snippets > Classifiers).', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailcrx.classifier', verbose_name='Order child pages by classifier'),
  13. ),
  14. migrations.AlterField(
  15. model_name='coderedpage',
  16. name='index_order_by',
  17. field=models.CharField(blank=True, choices=[('', 'Default Ordering'), ('-first_published_at', 'Date first published, newest to oldest'), ('first_published_at', 'Date first published, oldest to newest'), ('-last_published_at', 'Date updated, newest to oldest'), ('last_published_at', 'Date updated, oldest to newest'), ('title', 'Title, alphabetical'), ('-title', 'Title, reverse alphabetical')], default='', help_text='Child pages will then be sorted by this attribute.', max_length=255, verbose_name='Order child pages by'),
  18. ),
  19. ]