Author: adrian
Date: 2007-01-16 19:45:01 -0600 (Tue, 16 Jan 2007)
New Revision: 4341
Modified:
django/branches/newforms-admin/django/db/models/base.py
Log:
newforms-admin: Added missing 'js' exclusion to AdminOptions, forgotten in
[4340]
Modified: django/branches/newforms-admin/django/db/models/base.py
===================================================================
--- django/branches/newforms-admin/django/db/models/base.py 2007-01-17
01:44:00 UTC (rev 4340)
+++ django/branches/newforms-admin/django/db/models/base.py 2007-01-17
01:45:01 UTC (rev 4341)
@@ -137,7 +137,7 @@
# of ModelAdmin.
cls._meta.ModelAdmin = type('ModelAdmin', (value, ModelAdmin), {})
# This AdminOptions stuff is legacy and will eventually be removed.
- value = AdminOptions(**dict([(k, v) for k, v in
value.__dict__.items() if not k.startswith('_') and k not in ('list_display',
'list_display_links', 'list_filter', 'date_hierarchy', 'save_as',
'search_fields', 'list_select_related', 'list_per_page', 'ordering',
'save_on_top')]))
+ value = AdminOptions(**dict([(k, v) for k, v in
value.__dict__.items() if not k.startswith('_') and k not in ('list_display',
'list_display_links', 'list_filter', 'date_hierarchy', 'save_as',
'search_fields', 'list_select_related', 'list_per_page', 'ordering',
'save_on_top', 'js')]))
value.contribute_to_class(cls, name)
elif hasattr(value, 'contribute_to_class'):
value.contribute_to_class(cls, name)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django
updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---