tsg-humlab / shewrote

studying historical early women’s reception: oeuvres, texts, engagements / https://shewrote.rich.ru.nl/
0 stars 0 forks source link

Add __str__ methods to models #11

Closed vanlummelhuizen closed 10 months ago

vanlummelhuizen commented 10 months ago

Now, a dropdown list of e.g. Places shows 'Place object' and the UUID. Adding a str method will at least show a default value.

dennis-bor commented 10 months ago

Added str to most models in this commit, but forgot to mention #11 in the commit message. Oops.

dennis-bor commented 10 months ago

The Edition model doesn't have an obvious attribute to use for the str method. Should we include a title field for Editions @vanlummelhuizen ?

vanlummelhuizen commented 10 months ago

The Edition model doesn't have an obvious attribute to use for the str method. Should we include a title field for Editions @vanlummelhuizen ?

I don't think we should introduce thing solely for this purpose. I think we can leave it for now and fix it later when things are more clear.