Skip to content

Commit

Permalink
feat(models): add NotesMixin to Work
Browse files Browse the repository at this point in the history
  • Loading branch information
koeaw committed Apr 2, 2024
1 parent da9d815 commit 5d12434
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions apis_ontology/migrations/0052_work_notes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 4.2.11 on 2024-04-02 09:24

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("apis_ontology", "0051_alter_expression_issue"),
]

operations = [
migrations.AddField(
model_name="work",
name="notes",
field=models.TextField(
blank=True,
default="",
help_text="Feld für interne Notizen",
max_length=1024,
verbose_name="Notiz",
),
),
]
2 changes: 1 addition & 1 deletion apis_ontology/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ class Meta:


@reversion.register(follow=["rootobject_ptr"])
class Work(TitlesMixin, LanguageMixin, StatusMixin, AbstractEntity):
class Work(TitlesMixin, LanguageMixin, NotesMixin, StatusMixin, AbstractEntity):
"""
The abstract notion of an intellectual creation, irrespective
of its exact transmitted version, language or other form.
Expand Down

0 comments on commit 5d12434

Please sign in to comment.