Opened 11 years ago
Closed 11 years ago
#22894 closed Cleanup/optimization (fixed)
make admin add related behaviour customizable
| Reported by: | rm_ | Owned by: | nobody |
|---|---|---|---|
| Component: | contrib.admin | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | yes |
| Easy pickings: | no | UI/UX: | yes |
Description
Decouple behaviour and style from the RelatedFieldWidgetWrapper widget so it's easier to customize.
This makes life easier for people that want to say use a modal or just style it differently.
While at it in change_form.html start consolidating document ready event listeners in one place.
Change History (6)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
If change looks ok i've done the same for raw_id_fields widget and unified common js code here https://github.com/xrmx/django/commits/morepopupcleanup
comment:4 by , 11 years ago
| Patch needs improvement: | set |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
comment:5 by , 11 years ago
Thanks for the review Tim, pull requests updated with these changes:
- added title to <a>
- splitted css blocks
- renamed template block
- splitted long lines in tests
comment:6 by , 11 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Pull request here https://github.com/django/django/pull/2847