New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add leaflet form widget and admin #28
Conversation
…admin Add leaflet form widget and admin
I'm having trouble enabling admin with this line, "from leaflet.admin import LeafletGeoAdmin" Error says "no module named admin". |
Indeed, it was not released yet, you need to run the last development version (master) along with Django 1.6 |
I did that and got it running. Took me a while to figure it out. I'm new to The problem I now have is that it can't save the geometry. I'm using models.py class Station(gismodels.Model):
thanks in advance for any help you can provide, Michael On Thu, Sep 5, 2013 at 3:34 AM, Mathieu Leplatre
|
You model looks good, and it looks like you are facing a bug that was fixed very recently (don't forget that Django 1.6 is not yet released). Upgrading your Django to the last version (branch 1.6.X) will solve this. https://code.djangoproject.com/ticket/21003 |
That worked great, thank you so much. The django version reads 1.7 On Thu, Sep 5, 2013 at 9:02 AM, Mathieu Leplatre
|
One more thing if you don't mind. How do I go about adjusting width and On Thu, Sep 5, 2013 at 4:53 PM, Michael Savarese geomajor56@gmail.comwrote:
|
In the Adminsite you can just override LeafletGeoAdmin :
|
is it possible to alter the max zoom within admin when selecting a feature? thanks in advance, Michael |
Hi Michael, |
Usage is very easy ( Requires Django 1.6 ) :
Or in form :
TODO