Author: jkocherhans
Date: 2007-09-11 21:23:59 -0500 (Tue, 11 Sep 2007)
New Revision: 6105
Modified:
django/branches/newforms-admin/django/contrib/admin/options.py
Log:
newforms-admin: Added show_url attribute to InlineAdminForm for deciding
whether we can show a 'display on site' link.
Modified: django/branches/newforms-admin/django/contrib/admin/options.py
===================================================================
--- django/branches/newforms-admin/django/contrib/admin/options.py
2007-09-12 01:37:39 UTC (rev 6104)
+++ django/branches/newforms-admin/django/contrib/admin/options.py
2007-09-12 02:23:59 UTC (rev 6105)
@@ -761,6 +761,7 @@
def __init__(self, formset, form, fieldsets, prepopulated_fields,
original):
self.formset = formset
self.original = original
+ self.show_url = original and hasattr(original, 'get_absolute_url')
super(InlineAdminForm, self).__init__(form, fieldsets,
prepopulated_fields)
def pk_field(self):
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---