Opened 9 years ago
Closed 9 years ago
#26779 closed Cleanup/optimization (fixed)
i18n_javascript should take extra_context as argument
| Reported by: | Shabda | Owned by: | Shabda |
|---|---|---|---|
| Component: | contrib.admin | Version: | 1.9 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | yes |
| Easy pickings: | yes | UI/UX: | no |
Description
All Django admin views connected to urlpatterns take extra_context as argument. So you can say url(r'^admin/', include(admin.site.urls), {'extra_context': {"foo": "bar"}}) except that it will break for jsi18n endpoint.
This can be fixed by making i18n_javascript view take extra_context.
Change History (5)
comment:1 by , 9 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:2 by , 9 years ago
comment:3 by , 9 years ago
| Needs tests: | set |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
| Type: | Bug → Cleanup/optimization |
A test is also needed.
comment:4 by , 9 years ago
| Needs tests: | unset |
|---|---|
| Patch needs improvement: | set |
Note:
See TracTickets
for help on using tickets.
Patch is:
https://github.com/django/django/pull/6806