CentreForDigitalHumanities / lettercraft

Lettercraft & Epistolary Performance in Medieval Europe
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Feature/source description split #45

Closed XanderVertegaal closed 2 months ago

XanderVertegaal commented 3 months ago

This PR introduces a split between actual, 'historical' entities and source descriptions (closes #32 ). The implementation is as follows.

Feel free to take over this PR and push commits on it while I am away, if it blocks your progress.

There are two abstract models, as per your suggestion:

The idea is that each entity is represented by three model objects (taking Agent as an example).

This split has been implemented for the Agent, Letter, Gift, SpaceDescription and LetterAction models.

Admin interface

In the AgentDescription admin interface, we can easily select a target for a description: image

In the Agent admin interface, connected descriptions are shown in a semi-custom tabular inline. image

Other issues

This PR also includes a migration that is currently missing in develop.

XanderVertegaal commented 3 months ago

Alright, it does seem I have misunderstood a couple of things; let's discuss the necessary refactors soon!