Opened 17 years ago

Closed 17 years ago

#5459 closed (invalid)

newforms-admin ModelAdmin ignores the js attribute

Reported by: sjulean@… Owned by: nobody
Component: Uncategorized Version: newforms-admin
Severity: Keywords: custom js javascript ModelAdmin
Cc: dan.popovici@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When migrating to newforms-admin, it is usually sufficient to move the attribute declarations from the Admin subclass into a new class that inherits from ModelAdmin.

However, for the time being, the latest SVN branch ignores the js attribute, although it internally uses media widgets to achieve that goal, so integration with user-required scripts would be trivial.

My solution was to create a JSModelAdmin class, which inherits from the stock ModelAdmin and implements this feature. However, it would be nice to have support for this feature.

Change History (1)

comment:1 by Russell Keith-Magee, 17 years ago

Resolution: invalid
Status: newclosed

The js argument has been deprecated in favor of the new Media framework.

Note: See TracTickets for help on using tickets.
Back to Top