diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2020-11-17 15:37:22 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-28 12:15:21 +0100 |
commit | 53f899c9ded29921c982e67f220716b2f86823f3 (patch) | |
tree | e983fd246f6fd2ce0e9521ea23c1f93c73cc8bc9 /archaeological_warehouse | |
parent | 9667957457eaf024e1b4a40f5d04ae001c4eeaca (diff) | |
download | Ishtar-53f899c9ded29921c982e67f220716b2f86823f3.tar.bz2 Ishtar-53f899c9ded29921c982e67f220716b2f86823f3.zip |
Manage a "custom_index" for base types
Diffstat (limited to 'archaeological_warehouse')
-rw-r--r-- | archaeological_warehouse/migrations/0106_auto_20201117_0759.py | 30 | ||||
-rw-r--r-- | archaeological_warehouse/models.py | 5 |
2 files changed, 33 insertions, 2 deletions
diff --git a/archaeological_warehouse/migrations/0106_auto_20201117_0759.py b/archaeological_warehouse/migrations/0106_auto_20201117_0759.py new file mode 100644 index 000000000..39a30b34c --- /dev/null +++ b/archaeological_warehouse/migrations/0106_auto_20201117_0759.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.27 on 2020-11-17 07:59 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('archaeological_warehouse', '0105_auto_20201104_1000'), + ] + + operations = [ + migrations.AddField( + model_name='container', + name='custom_index', + field=models.IntegerField(blank=True, null=True, verbose_name='Custom index'), + ), + migrations.AddField( + model_name='historicalwarehouse', + name='custom_index', + field=models.IntegerField(blank=True, null=True, verbose_name='Custom index'), + ), + migrations.AddField( + model_name='warehouse', + name='custom_index', + field=models.IntegerField(blank=True, null=True, verbose_name='Custom index'), + ), + ] diff --git a/archaeological_warehouse/models.py b/archaeological_warehouse/models.py index 5ae4de5a0..872cc1d68 100644 --- a/archaeological_warehouse/models.py +++ b/archaeological_warehouse/models.py @@ -610,8 +610,9 @@ class ContainerTree(models.Model): db_table = 'containers_tree' -class Container(DocumentItem, Merge, LightHistorizedItem, CompleteIdentifierItem, GeoItem, - OwnPerms, MainItem, DivisionContainer, ValueGetter): +class Container(DocumentItem, Merge, LightHistorizedItem, + CompleteIdentifierItem, GeoItem, OwnPerms, MainItem, + DivisionContainer, ValueGetter): SLUG = 'container' APP = "archaeological-warehouse" MODEL = "container" |