So i am making an app where you can find activities which happen at locations.
On the django-admin page i want to be able to modify Activities (which works).
However an activity has a starting time - i want this starting time to be in the same timezone as the location.
So i want it to display the start time, on the activity admin page, in the same timezone as the location is in, but then when saved it should be converted to UTC time.
The starttime is in an inline-formset, as it can have multiple start times.
I find a way to change the datetime when saving the objects, but i cant find a way to modify it when it's rendered in the inline-thing.
How do i modify data as it's rendered in the admin page?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…