diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2020-10-06 19:44:11 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-28 12:15:21 +0100 |
commit | ce17a92be9c98753911987d12bf30ea9485e8e3f (patch) | |
tree | 04961ac0119f44f5c46cb4356733f8bf2b5b0c1d /archaeological_context_records | |
parent | c37576c628db687260975c0d1d219c196a2bc9a5 (diff) | |
download | Ishtar-ce17a92be9c98753911987d12bf30ea9485e8e3f.tar.bz2 Ishtar-ce17a92be9c98753911987d12bf30ea9485e8e3f.zip |
Complete identifier field: database - profile settings - save
Diffstat (limited to 'archaeological_context_records')
-rw-r--r-- | archaeological_context_records/migrations/0104_auto_20201007_1215.py | 25 | ||||
-rw-r--r-- | archaeological_context_records/models.py | 4 |
2 files changed, 27 insertions, 2 deletions
diff --git a/archaeological_context_records/migrations/0104_auto_20201007_1215.py b/archaeological_context_records/migrations/0104_auto_20201007_1215.py new file mode 100644 index 000000000..cb59f180c --- /dev/null +++ b/archaeological_context_records/migrations/0104_auto_20201007_1215.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.27 on 2020-10-07 12:15 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('archaeological_context_records', '0103_historicalcontextrecord_history_change_reason'), + ] + + operations = [ + migrations.AddField( + model_name='contextrecord', + name='complete_identifier', + field=models.TextField(blank=True, verbose_name='Complete identifier'), + ), + migrations.AddField( + model_name='historicalcontextrecord', + name='complete_identifier', + field=models.TextField(blank=True, verbose_name='Complete identifier'), + ), + ] diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index c664c39b6..0a7cd3d88 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -39,7 +39,7 @@ from ishtar_common.models import Document, GeneralType, \ GeneralRelationType, GeneralRecordRelations, post_delete_record_relation,\ post_save_cache, ValueGetter, BulkUpdatedItem, \ RelationItem, Town, get_current_profile, document_attached_changed, \ - HistoryModel, SearchAltName, GeoItem, QRCodeItem, SearchVectorConfig, \ + HistoryModel, SearchAltName, GeoItem, CompleteIdentifierItem, SearchVectorConfig, \ DocumentItem, MainItem, QuickAction from ishtar_common.models_common import HistoricalRecords from archaeological_operations.models import Operation, Period, Parcel, \ @@ -338,7 +338,7 @@ class CRBulkView(object): class ContextRecord(BulkUpdatedItem, DocumentItem, BaseHistorizedItem, - QRCodeItem, GeoItem, OwnPerms, ValueGetter, MainItem, + CompleteIdentifierItem, GeoItem, OwnPerms, ValueGetter, MainItem, RelationItem): SLUG = 'contextrecord' APP = "archaeological-context-records" |