How to get a single widget to set 2 fields in Django?
Posted
by kender
on Stack Overflow
See other posts from Stack Overflow
or by kender
Published on 2010-05-18T11:34:10Z
Indexed on
2010/05/18
12:30 UTC
Read the original article
Hit count: 251
Hi, I got a model with 2 fields: latitude and longitude. Right now they're 2 CharFields, but I want to make a custom widget to set it in admin - was thinking about displaying Google Maps, then getting the coordinates of the marker.
But can I have 1 widget (a single map) to set 2 different fields?
© Stack Overflow or respective owner