Author: adrian
Date: 2006-08-02 10:05:51 -0500 (Wed, 02 Aug 2006)
New Revision: 3516
Modified:
django/trunk/AUTHORS
django/trunk/django/core/management.py
Log:
Fixed #2467 -- Improved model validator to check date_hierarchy. Thanks, Simon
Greenhill
Modified: django/trunk/AUTHORS
===================================================================
--- django/trunk/AUTHORS 2006-08-02 14:59:08 UTC (rev 3515)
+++ django/trunk/AUTHORS 2006-08-02 15:05:51 UTC (rev 3516)
@@ -71,6 +71,7 @@
[EMAIL PROTECTED]
Baishampayan Ghose
[EMAIL PROTECTED]
+ Simon Greenhill <[EMAIL PROTECTED]>
Espen Grindhaug <http://grindhaug.org/>
Brant Harris
[EMAIL PROTECTED]
Modified: django/trunk/django/core/management.py
===================================================================
--- django/trunk/django/core/management.py 2006-08-02 14:59:08 UTC (rev
3515)
+++ django/trunk/django/core/management.py 2006-08-02 15:05:51 UTC (rev
3516)
@@ -953,6 +953,12 @@
f = opts.get_field(fn)
except models.FieldDoesNotExist:
e.add(opts, '"admin.list_filter" refers to %r,
which isn\'t a field.' % fn)
+ # date_hierarchy
+ if opts.admin.date_hierarchy:
+ try:
+ f = opts.get_field(opts.admin.date_hierarchy)
+ except models.FieldDoesNotExist:
+ e.add(opts, '"admin.date_hierarchy" refers to %r,
which isn\'t a field.' % opts.admin.date_hierarchy)
# Check ordering attribute.
if opts.ordering:
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---