Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #2508 -- Added back support for custom edit_inline classes. Tha…

…nks,

jkocherhans.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@3801 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e8b572b912deee1c2cec493782b1172fccd75f90 1 parent bd4c22b
Malcolm Tredinnick authored September 23, 2006
4  django/contrib/admin/templatetags/admin_modify.py
@@ -160,8 +160,10 @@ def render(self, context):
160 160
         context.push()
161 161
         if relation.field.rel.edit_inline == models.TABULAR:
162 162
             bound_related_object_class = TabularBoundRelatedObject
163  
-        else:
  163
+        elif relation.field.rel.edit_inline == models.STACKED:
164 164
             bound_related_object_class = StackedBoundRelatedObject
  165
+        else:
  166
+            bound_related_object_class = relation.field.rel.edit_inline
165 167
         original = context.get('original', None)
166 168
         bound_related_object = relation.bind(context['form'], original, bound_related_object_class)
167 169
         context['bound_related_object'] = bound_related_object

0 notes on commit e8b572b

Please sign in to comment.
Something went wrong with that request. Please try again.