#30049: Multiple problems using gis fields in admin inlines ------------------------------+-------------------------------------- Reporter: Lars Solberg | Owner: nobody Type: Bug | Status: new Component: GIS | Version: 2.1 Severity: Normal | Resolution: Keywords: gis, admin | Triage Stage: Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 ------------------------------+--------------------------------------
Comment (by Lars Solberg): I still coulnt get it to work. I tried using one I have working as an inline, then the inlined version stopped working as well. So this happens when I am using inlines.. The html to render the widgets are wastly different.. * Inlined version @ https://gist.github.com/xeor/968ad1c597c59c432b4a3588b87f2178 * Normal version @ https://gist.github.com/xeor/84a374d57b89adeef5b37513b4409667 In this case, I have taken out the useradmin part, and have made a normal admin interface.. {{{ from django.contrib.gis import admin from .models import Other, Spot class SpotInline(admin.StackedInline): model = Spot extra = 1 class OtherAdmin(admin.OSMGeoAdmin): inlines = (SpotInline,) admin.site.register(Other, OtherAdmin) }}} OtherAdmin now has the map as a normal widget (works), and one as an inline (doesnt work). I can see in eg https://github.com/django/django/blob/master/django/contrib/gis/templates/gis/admin/openlayers.html that there are some references around to example `{{ id }}_map`.. Will `id` be correct when this is using an inline? -- Ticket URL: <https://code.djangoproject.com/ticket/30049#comment:3> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/062.44d9486deab6ab1a327c14e4efa93a7f%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.