3👍
✅
I suspect that the last person
in loop has person.actionid != visit.actionid
. So the check for forloop.last
is not executed.
- [Django]-Unable to autopopulate a Django admin field using an attribute from a OneToOne relationship
Source:stackexchange.com