Revision: 634
Author: summer.is.gone
Date: Sat Aug 8 12:20:57 2009
Log: Fixed `inlines' initial value in PageAdmin. Closed issue #135
http://code.google.com/p/django-page-cms/source/detail?r=634
Modified:
/trunk/pages/admin/__init__.py
=======================================
--- /trunk/pages/admin/__init__.py Mon Aug 3 07:26:03 2009
+++ /trunk/pages/admin/__init__.py Sat Aug 8 12:20:57 2009
@@ -36,6 +36,9 @@
#if getattr(settings, 'PAGE_USE_SITE_ID'):
general_fields.append('sites')
insert_point = general_fields.index('status') + 1
+ # Strange django behavior. If not provided, django will try to find
+ # 'page' foreign key in all registered models
+ inlines = []
if settings.PAGE_TAGGING:
general_fields.insert(insert_point, 'tags')
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pinax-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/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---