Fix / Add support for radiobuttons after adding item with popup in Django Admin
|Reported by:||trbs||Owned by:||bodiddlie|
|Severity:||Normal||Keywords:||admin, radio, radiolist, dismissAddAnotherPopup, popup|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||yes||Patch needs improvement:||yes|
The following patch adds support for dynamically adding radiobutton items to the admin page.
Without this patch the newly added item through the popup menu does not get added to the page and
the user must reload the page before being able to select the new item.
The patch adds an extra case to dismissAddAnotherPopup in RelatedObjectsLookup.js which creates and appends the necessary html to the list of radiobuttons on the page.
Tested with django.contrib.redirects and a slightly modified version of django-podcast.
Works (for me) on Firefox, IE and Opera.
Change History (19)
comment:2 Changed 8 years ago by
|Patch needs improvement:||unset|
|Triage Stage:||Unreviewed → Accepted|
comment:4 Changed 7 years ago by
|milestone:||1.1 → 1.2|
|Triage Stage:||Design decision needed → Accepted|