CentreForDigitalHumanities / lettercraft

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

Feature/space models #36

Closed lukavdplas closed 6 months ago

lukavdplas commented 7 months ago

This adds a new app "space" to describe spatial information. (close #24)

The core model is SpaceDescription, which can include anything a source text describes about where something takes place.

Structure is the most detailed aspect. Based on our discussion, a Structure describes anything from a town to a desk. Structures are connected in trees to describe how one structure contains another. This is different from the suggested implementation of Site and Location in #24, but we hope this will be clearer in data entry.

The models for PoliticalRegion, EcclesiasticalRegion, and GeographicalRegion models are quite minimal. Those should also include a concept of one region containing another, but I'll leave that for a later update.

Some of the ways in which spaces relate to other models and to sources will change with #32, so I did not really focus on the relationship with sources. (Descriptions should really have a single, non-nullable source field, but now they just reuse Reference.)

Changes for deployment: Add the 'space' app to settings and give staff users permission to view/edit it.