django-leaflet
django-leaflet copied to clipboard
Question: a map instead of a list in admin change list
Hi!
For some geo models, a textual list doesn't make sense. I'd love to be able to replace my admin change list by a leaflet map, allowing to select entities or edit them. Best would be to display this as a tab, so that the user could choose between the list or the map view. It seems very feasible and very useful, did someone already work on this? It not, any reason why? The only problem I see is pagination. I guess there could be a max feature setting, and a warning it not all features are displayed. The user could then use a filter. I may give it a try but am relatively new to django, would the author be ready to review the code in depth?
Nice idea !
As far as I can say, the most difficult part will probably be on UX and Javascript, not Django admin itself.
did someone already work on this?
A few years ago we made django-mapentity that provides exactly that for Django geo models, but outside the admin though.
any reason why?
Usually the adminsite is relevant for small admin interventions, not a full end-user interface. And we never invested efforts on this :)
I may give it a try but am relatively new to django, would the author be ready to review the code in depth?
I can try to review some code, but I can't promise about high reactivity and quick response cycles. Anyone at Makina corpus ? @gutard @anaethelion ?
@leplatrem OK I just made a PR with a first try on implementing this : https://github.com/makinacorpus/django-leaflet/pull/124
