From 9f8e22e404f30b0c26933ebc85efdb416cc7bca4 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 6 Oct 2020 19:44:11 +0200 Subject: Complete identifier field: database - profile settings - save --- .../migrations/0104_auto_20201007_1215.py | 25 ++++++++++++++++++++++ archaeological_context_records/models.py | 4 ++-- 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 archaeological_context_records/migrations/0104_auto_20201007_1215.py (limited to 'archaeological_context_records') 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" -- cgit v1.2.3