diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-07-29 19:02:32 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-07-08 09:58:48 +0200 |
commit | 6256a635ee365880383e4832e1551d063201956f (patch) | |
tree | bcf864567d7858c51c41c6a2d466ca51a498e6ea /archaeological_files/migrations | |
parent | 6a5acdc166566bdbd2e09bbf5e2f1c5c40561802 (diff) | |
download | Ishtar-6256a635ee365880383e4832e1551d063201956f.tar.bz2 Ishtar-6256a635ee365880383e4832e1551d063201956f.zip |
Preventive file: work on inlines - 3
Diffstat (limited to 'archaeological_files/migrations')
-rw-r--r-- | archaeological_files/migrations/0106_auto_20210729_1616.py (renamed from archaeological_files/migrations/0106_auto_20210726_1230.py) | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/archaeological_files/migrations/0106_auto_20210726_1230.py b/archaeological_files/migrations/0106_auto_20210729_1616.py index 5f3163cf9..3891b5d30 100644 --- a/archaeological_files/migrations/0106_auto_20210726_1230.py +++ b/archaeological_files/migrations/0106_auto_20210729_1616.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Generated by Django 1.11.28 on 2021-07-26 12:30 +# Generated by Django 1.11.28 on 2021-07-29 16:16 from __future__ import unicode_literals import django.core.validators @@ -79,16 +79,16 @@ class Migration(migrations.Migration): ('available', models.BooleanField(default=True, verbose_name='Available')), ('ground_daily_cost', models.FloatField(blank=True, null=True, verbose_name='Ground daily cost')), ('daily_cost', models.FloatField(blank=True, null=True, verbose_name='Daily cost')), - ('permanent_contract', models.NullBooleanField(verbose_name='Is a permanent contract')), - ('default_daily_need_on_ground', models.FloatField(default=0, verbose_name='Default daily number needed on the ground')), - ('default_daily_need', models.FloatField(default=0, verbose_name='Default daily number needed')), + ('permanent_contract', models.NullBooleanField(verbose_name='Permanent contract')), + ('default_daily_need_on_ground', models.FloatField(default=0, verbose_name='Def. daily number on ground')), + ('default_daily_need', models.FloatField(default=0, verbose_name='Def. daily number')), ('order', models.IntegerField(default=10, verbose_name='Order')), - ('parents', models.ManyToManyField(blank=True, help_text='Auto-add this job when a parent is added', related_name='_job_parents_+', to='archaeological_files.Job', verbose_name='Parents')), + ('child', models.ForeignKey(blank=True, help_text='Auto-add this job when a parent is added', null=True, on_delete=django.db.models.deletion.CASCADE, to='archaeological_files.Job', verbose_name='Child')), ], options={ 'verbose_name': 'Job', 'verbose_name_plural': 'Jobs', - 'ordering': ('order', 'label'), + 'ordering': ('order', '-permanent_contract', 'label'), }, bases=(ishtar_common.models_common.Cached, models.Model), ), |