Opened 10 years ago
Closed 10 years ago
#24405 closed Cleanup/optimization (fixed)
admin: cleanup Open related* popups code so it's easier to extend / replace
Reported by: | rm_ | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Normal | Keywords: | popup admin modal |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | yes |
Description
I think it's time to say goodbye to 2000s and embrace the 2010s leaving the windows for modals. Other than that we have separated the js machinery from the widget so this can be customized.
WIP tree here, full of debug prints:
https://github.com/xrmx/django/tree/relatedcleanup
Appear to work when adding new related objects, haven't run automated tests yet.
TODO:
- cleanup the js
- switch to a saner modal library with a proper license
Change History (10)
follow-up: 2 comment:1 by , 10 years ago
comment:2 by , 10 years ago
Replying to timgraham:
Could you please open a discussion on the DevelopersMailingList to get feedback on the idea?
Will do
comment:3 by , 10 years ago
Summary: | admin: Open related* popups in modals instead of new windows → admin: cleanup Open related* popups code so it's easier to extend / replace |
---|
After list discussion [1] focus the energies on just cleaning up the code in order to be able to replace / extend it downstream. Retitle the bug to reflect that.
[1] https://groups.google.com/forum/#!topic/django-developers/b38JElfE3wk
comment:4 by , 10 years ago
Patch needs improvement: | set |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:5 by , 10 years ago
Patch needs improvement: | unset |
---|
Opened pull request;
https://github.com/django/django/pull/4214
comment:6 by , 10 years ago
Patch needs improvement: | set |
---|
comment:7 by , 10 years ago
Patch needs improvement: | unset |
---|
Could you please open a discussion on the DevelopersMailingList to get feedback on the idea?