acdh-oeaw / apis-core-rdf

APIS Core refactored
https://acdh-oeaw.github.io/apis-core-rdf/
MIT License
3 stars 3 forks source link

question(sample_project): incomplete history for M2M fields after loaddata #1362

Open gythaogg opened 1 week ago

gythaogg commented 1 week ago

Why is it that in the history records for Persons I don't see the many to many field - Profession, even though this field has data?

When I go to the edit view of the object and click on Submit without actually changing anything a new history record is created as if I added the Profession just then.

b1rger commented 1 week ago

Maybe because the Profession model does not inherit from VersionMixin, but maybe @sennierer can explain this in more detail

gythaogg commented 1 week ago

Yeah but then it is weird that it gets added to History record from the create/edit views (and missing only when added via loaddata from the fixture). @sennierer your thoughts?