Skip to content

Commit

Permalink
feat: add NotesMixin to Expression
Browse files Browse the repository at this point in the history
  • Loading branch information
koeaw committed Mar 21, 2024
1 parent d34fb17 commit 704e789
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
22 changes: 22 additions & 0 deletions apis_ontology/migrations/0044_expression_notes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Generated by Django 4.2.11 on 2024-03-21 16:52

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",
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 @@ -506,7 +506,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 704e789

Please sign in to comment.