diff --git a/apis_instance_nsvis/migrations/0003_rename_collaboration_collaborateswith.py b/apis_instance_nsvis/migrations/0003_rename_collaboration_collaborateswith.py new file mode 100644 index 0000000..a4585d9 --- /dev/null +++ b/apis_instance_nsvis/migrations/0003_rename_collaboration_collaborateswith.py @@ -0,0 +1,18 @@ +# Generated by Django 5.1.2 on 2024-11-13 07:05 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('apis_instance_nsvis', '0002_alter_mongodbmodel_content_type_and_more'), + ('relations', '0001_initial'), + ] + + operations = [ + migrations.RenameModel( + old_name='Collaboration', + new_name='CollaboratesWith', + ), + ] diff --git a/apis_instance_nsvis/migrations/0004_rename_membership_ismemberof.py b/apis_instance_nsvis/migrations/0004_rename_membership_ismemberof.py new file mode 100644 index 0000000..a06efee --- /dev/null +++ b/apis_instance_nsvis/migrations/0004_rename_membership_ismemberof.py @@ -0,0 +1,18 @@ +# Generated by Django 5.1.2 on 2024-11-13 07:05 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('apis_instance_nsvis', '0003_rename_collaboration_collaborateswith'), + ('relations', '0001_initial'), + ] + + operations = [ + migrations.RenameModel( + old_name='Membership', + new_name='IsMemberOf', + ), + ] diff --git a/apis_instance_nsvis/models.py b/apis_instance_nsvis/models.py index 1ad1fc3..868c604 100644 --- a/apis_instance_nsvis/models.py +++ b/apis_instance_nsvis/models.py @@ -56,12 +56,12 @@ class AddressData(AbstractEntity, VersionMixin): auditlog.register(AddressData, serialize_data=True) -class Collaboration(Relation): +class CollaboratesWith(Relation): subj_model = Person obj_model = Person -class Membership(Relation): +class IsMemberOf(Relation): subj_model = Person obj_model = Institution @@ -81,8 +81,8 @@ class AddressInPlace(Relation): obj_model = Place -auditlog.register(Collaboration) -auditlog.register(Membership) +auditlog.register(CollaboratesWith) +auditlog.register(IsMemberOf) auditlog.register(LivesIn) auditlog.register(WorksIn) auditlog.register(AddressInPlace)