From 8f33cc4c4b5f2e86fccbba180f660472a8be93cb Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 26 Apr 2024 15:52:50 +0200 Subject: 🐛 Context record relations import: fix missing attachment to imports (refs #5923) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/migrations/0245_verbose_names.py | 23 +++++++++++++++++++++++ ishtar_common/models.py | 5 ++++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 ishtar_common/migrations/0245_verbose_names.py (limited to 'ishtar_common') diff --git a/ishtar_common/migrations/0245_verbose_names.py b/ishtar_common/migrations/0245_verbose_names.py new file mode 100644 index 000000000..526a20fa7 --- /dev/null +++ b/ishtar_common/migrations/0245_verbose_names.py @@ -0,0 +1,23 @@ +# Generated by Django 2.2.24 on 2024-04-26 15:37 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('ishtar_common', '0244_imports_media_link'), + ] + + operations = [ + migrations.AlterField( + model_name='import', + name='imported_media_link', + field=models.URLField(blank=True, null=True, verbose_name='Associated media (web link to a zip file or a path)'), + ), + migrations.AlterField( + model_name='importgroup', + name='imported_media_link', + field=models.URLField(blank=True, null=True, verbose_name='Associated media (web link to a zip file or a path)'), + ), + ] diff --git a/ishtar_common/models.py b/ishtar_common/models.py index e40c7c54c..5fb370362 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -841,7 +841,10 @@ class GeneralRelationType(GeneralType): return obj -class GeneralRecordRelations(object): +class GeneralRecordRelations(Imported): + class Meta: + abstract = True + @classmethod def general_types(cls): return ["relation_type"] -- cgit v1.2.3