-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #299 from acdh-oeaw/goodbye-notes
Removal of notes field: apis_ontology/models.py: Removed the notes field from the Meta class. Updates to filter sets: apis_ontology/filtersets.py: Removed the notes field from the exclude lists in the Meta classes of PersonFilterSet, PlaceFilterSet, WorkFilterSet, and InstanceFilterSet. [1] [2] [3] [4] Migration updates: apis_ontology/migrations/0057_alter_instance_options_alter_person_options_and_more.py: Created a new migration to remove the notes field from the Instance, Person, Place, VersionInstance, VersionPerson, VersionPlace, VersionWork, and Work models, and updated model options and fields.
- Loading branch information
Showing
3 changed files
with
129 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
129 changes: 129 additions & 0 deletions
129
apis_ontology/migrations/0057_alter_instance_options_alter_person_options_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
# Generated by Django 5.1.6 on 2025-02-13 08:10 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
( | ||
"apis_ontology", | ||
"0056_rename_placeislocatedwithinplace_placelocatedwithinplace_and_more", | ||
), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name="instance", | ||
options={ | ||
"ordering": ["name", "pk"], | ||
"verbose_name": "instance", | ||
"verbose_name_plural": "Instances", | ||
}, | ||
), | ||
migrations.AlterModelOptions( | ||
name="person", | ||
options={ | ||
"ordering": ["name", "pk"], | ||
"verbose_name": "person", | ||
"verbose_name_plural": "Persons", | ||
}, | ||
), | ||
migrations.AlterModelOptions( | ||
name="subject", | ||
options={ | ||
"ordering": ["name"], | ||
"verbose_name": "Topic", | ||
"verbose_name_plural": "Topics", | ||
}, | ||
), | ||
migrations.AlterModelOptions( | ||
name="work", | ||
options={ | ||
"ordering": ["name", "pk"], | ||
"verbose_name": "work", | ||
"verbose_name_plural": "Works", | ||
}, | ||
), | ||
migrations.RemoveField( | ||
model_name="instance", | ||
name="notes", | ||
), | ||
migrations.RemoveField( | ||
model_name="person", | ||
name="notes", | ||
), | ||
migrations.RemoveField( | ||
model_name="place", | ||
name="notes", | ||
), | ||
migrations.RemoveField( | ||
model_name="versioninstance", | ||
name="notes", | ||
), | ||
migrations.RemoveField( | ||
model_name="versionperson", | ||
name="notes", | ||
), | ||
migrations.RemoveField( | ||
model_name="versionplace", | ||
name="notes", | ||
), | ||
migrations.RemoveField( | ||
model_name="versionwork", | ||
name="notes", | ||
), | ||
migrations.RemoveField( | ||
model_name="work", | ||
name="notes", | ||
), | ||
migrations.AlterField( | ||
model_name="personactiveatplace", | ||
name="subject_of_teaching_vocab", | ||
field=models.ManyToManyField( | ||
blank=True, to="apis_ontology.subject", verbose_name="Topic of teaching" | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="personlineagepredecessorofperson", | ||
name="subject_of_teaching_vocab", | ||
field=models.ManyToManyField( | ||
blank=True, to="apis_ontology.subject", verbose_name="Topic of teaching" | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="personquoteswithnameperson", | ||
name="subject_of_teaching_vocab", | ||
field=models.ManyToManyField( | ||
blank=True, to="apis_ontology.subject", verbose_name="Topic of teaching" | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="personquoteswithoutnameperson", | ||
name="subject_of_teaching_vocab", | ||
field=models.ManyToManyField( | ||
blank=True, to="apis_ontology.subject", verbose_name="Topic of teaching" | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="personrequestsperson", | ||
name="subject_of_teaching_vocab", | ||
field=models.ManyToManyField( | ||
blank=True, to="apis_ontology.subject", verbose_name="Topic of teaching" | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="personstudentofperson", | ||
name="subject_of_teaching_vocab", | ||
field=models.ManyToManyField( | ||
blank=True, to="apis_ontology.subject", verbose_name="Topic of teaching" | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="work", | ||
name="subject_vocab", | ||
field=models.ManyToManyField( | ||
blank=True, to="apis_ontology.subject", verbose_name="Topic" | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters