Skip to content

Commit

Permalink
feat(models): add NotesMixin to Expression
Browse files Browse the repository at this point in the history
  • Loading branch information
koeaw committed Mar 25, 2024
1 parent efe8e9e commit 90b96b1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
23 changes: 23 additions & 0 deletions apis_ontology/migrations/0044_expression_notes.py
Original file line number Diff line number Diff line change
@@ -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",
),
),
]
4 changes: 3 additions & 1 deletion apis_ontology/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,...
Expand Down

0 comments on commit 90b96b1

Please sign in to comment.