From 90b96b194245f1a5a8a92cdac80e05077e843e69 Mon Sep 17 00:00:00 2001 From: KK Date: Mon, 25 Mar 2024 09:06:11 +0100 Subject: [PATCH] feat(models): add NotesMixin to Expression --- .../migrations/0044_expression_notes.py | 23 +++++++++++++++++++ apis_ontology/models.py | 4 +++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 apis_ontology/migrations/0044_expression_notes.py diff --git a/apis_ontology/migrations/0044_expression_notes.py b/apis_ontology/migrations/0044_expression_notes.py new file mode 100644 index 0000000..6749f39 --- /dev/null +++ b/apis_ontology/migrations/0044_expression_notes.py @@ -0,0 +1,23 @@ +# Generated by Django 4.2.11 on 2024-03-25 08:05 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("apis_ontology", "0043_rename_first_name_character_forename_and_more"), + ] + + operations = [ + migrations.AddField( + model_name="expression", + name="notes", + field=models.TextField( + blank=True, + default="", + help_text="Feld für interne Notizen", + max_length=1024, + verbose_name="Notiz", + ), + ), + ] diff --git a/apis_ontology/models.py b/apis_ontology/models.py index 6bb28d0..9d844cc 100644 --- a/apis_ontology/models.py +++ b/apis_ontology/models.py @@ -507,7 +507,9 @@ class Meta: @reversion.register(follow=["rootobject_ptr"]) -class Expression(TitlesMixin, DescriptionMixin, StatusMixin, AbstractEntity): +class Expression( + TitlesMixin, DescriptionMixin, NotesMixin, StatusMixin, AbstractEntity +): """ A concrete representation of a given Work, captured in signs, images, audio signals,...