Opened 18 years ago
Closed 18 years ago
#6619 closed (invalid)
Add custom javascript missing from newforms-admin (js field missing)
| Reported by: | mrts | Owned by: | nobody |
|---|---|---|---|
| Component: | contrib.admin | Version: | newforms-admin |
| Severity: | Keywords: | javascript | |
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | yes |
| Needs tests: | yes | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Old admin interface had a way to add custom javascript to models in admin:
class MyModel(models.Model):
...
class Admin:
js = [ 'foo' ]
This functionality was missing, the attached patch adds the same functionality back:
class MyModel(models.Model): ... class MyModelAdmin(admin.ModelAdmin): ... js = [ 'foo' ]
It's a simple patch and should generally be ready for checkin.
Attachments (1)
Change History (3)
by , 18 years ago
| Attachment: | add_js.diff added |
|---|
comment:1 by , 18 years ago
| Needs documentation: | set |
|---|---|
| Needs tests: | set |
| Triage Stage: | Unreviewed → Ready for checkin |
comment:2 by , 18 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
Javascript in the admin is taken care of by the new inner Media class in newforms-admin. It's even documented, albeit hard to know about if you haven't been watching the branch for a long time. :)
Note:
See TracTickets
for help on using tickets.
Add missing custom js handling