This relates to adding information in a Foreignkey field in the main admin screen.
I have a Staff model. I need mugshots in 3 formats. I'd like to use django-imagekit
for processing.
I've made a Photo model to store the mugshot, and added it as a Foreignkey to Staff
as photo = models.ForeignKey(Photo)
.
Question: How can I add the mugshot directly in the Staff
admin screen, i.e. avoid having to upload the mugshots separately in their own admin screen then link to them from Staff
?
Thank you for your thoughts ...