diff options
Diffstat (limited to 'archaeological_finds/migrations/0033_auto_20180813_1310.py')
-rw-r--r-- | archaeological_finds/migrations/0033_auto_20180813_1310.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/archaeological_finds/migrations/0033_auto_20180813_1310.py b/archaeological_finds/migrations/0033_auto_20180813_1310.py index aea94a8e9..caa840c06 100644 --- a/archaeological_finds/migrations/0033_auto_20180813_1310.py +++ b/archaeological_finds/migrations/0033_auto_20180813_1310.py @@ -12,7 +12,7 @@ import re def migrate_finds(apps, schema_editor): Find = apps.get_model('archaeological_finds', 'Find') CheckedType = apps.get_model('archaeological_finds', - 'RecordQualityType') + 'CheckedType') not_checked, c = CheckedType.objects.get_or_create( txt_idx=u"not-checked", @@ -64,9 +64,10 @@ class Migration(migrations.Migration): ('txt_idx', models.TextField(help_text='The slug is the standardized version of the name. It contains only lowercase letters, numbers and hyphens. Each slug must be unique.', unique=True, validators=[django.core.validators.RegexValidator(re.compile('^[-a-zA-Z0-9_]+\\Z'), "Enter a valid 'slug' consisting of letters, numbers, underscores or hyphens.", 'invalid')], verbose_name='Textual ID')), ('comment', models.TextField(blank=True, null=True, verbose_name='Comment')), ('available', models.BooleanField(default=True, verbose_name='Available')), + ('order', models.IntegerField(default=10, verbose_name='Order')), ], options={ - 'ordering': ('label',), + 'ordering': ('order',), 'verbose_name': 'Checked type', 'verbose_name_plural': 'Checked types', }, |