Closed MarkusH closed 7 years ago
Do you want to open a pull request for this issue? The CSS code won't work though in a generic case. field-location
might also be named field-poi
or something.
Maybe you want to have a look at django-geoposition which has this feature already, but for Google Maps.
With django-grappelli
field class is just .location
.
I also changed js
to
js = (
'https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js',
)
Update: fixed.
It stopped working after upgrade to 0.3.0
and I can't understand why.
@int-ua: Can you give me more information? Like copy/paste the files you use on your admin page, the HTML from your admin page, and anything else that might be relevant? I can't really help you without any additional information.
Sorry, it was completely my fault, somehow I've defined widgets
not in a Meta
subclass of ModelForm
but on itsefl and it had no effect. It's completely functional after fixing this error.
@int-ua No worries, we all make mistakes. I'm glad you got it working again! 😄
This seems to be working just fine for. I'm closing this unless somebody has a more specific issue.
What i am doing for this atm:
The inluded CSS file contains a fix to have the map push down the lat/lon fields below when it appears :
which i sussed out with @netAction a few weeks ago.