Opened 5 years ago

Closed 3 years ago

#16417 closed Bug (wontfix)

GeoAdmin support in StackedInline

Reported by: martin@… Owned by: nobody
Component: GIS Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

StackedInline doesn't render a Map, although it should.

Change History (4)

comment:1 Changed 5 years ago by Aymeric Augustin

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset

Could you provide the minimal steps to reproduce this bug? A stripped down version of your models.py and admin.py should do the job. Thank you.

comment:2 Changed 5 years ago by Aymeric Augustin

Triage Stage: UnreviewedAccepted

comment:3 Changed 5 years ago by Colin Copeland

I began work on this at the sprints. Getting the map into the StackedInline was fairly easy, but supporting the JS "Add more" link introduced some issues. I refactored the OpenLayers JS into a jQuery plugin so that the functionality was encapsulated and could be reused more easily. It's not complete yet, but the current changes can be viewed here:

https://github.com/copelco/django/compare/master...ticket-16417

comment:4 Changed 3 years ago by Claude Paroz

Resolution: wontfix
Status: newclosed

From Django 1.6 on, it is not required any longer to use a special ModelAdmin for geo-enabled objects, as geometry fields have now default widgets. I've tested them with TabularInline and StackedInline and they seem to work fine.
Reopen if you can reproduce issues with "normal" ModelAdmins.

Note: See TracTickets for help on using tickets.
Back to Top