diff options
| author | Joseph Kocherhans <joseph@jkocherhans.com> | 2007-09-12 02:23:59 +0000 |
|---|---|---|
| committer | Joseph Kocherhans <joseph@jkocherhans.com> | 2007-09-12 02:23:59 +0000 |
| commit | fa717906688d544478581d17e6d521b2fd29815d (patch) | |
| tree | 7164cdc917fafcab02cd4ff6057ae14e2e0cef95 | |
| parent | dae251584e0334854a664663337925b79cb7a88f (diff) | |
newforms-admin: Added show_url attribute to InlineAdminForm for deciding whether we can show a 'display on site' link.
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@6105 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/contrib/admin/options.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py index 92960ae44c..aa4e26cc91 100644 --- a/django/contrib/admin/options.py +++ b/django/contrib/admin/options.py @@ -761,6 +761,7 @@ class InlineAdminForm(AdminForm): 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): |
