Opened 4 years ago

Closed 16 months 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 4 years ago by aaugustin

  • 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 4 years ago by aaugustin

  • Triage Stage changed from Unreviewed to Accepted

comment:3 Changed 3 years ago by copelco

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 16 months ago by claudep

  • Resolution set to wontfix
  • Status changed from new to closed

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