Permalink
Browse files

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...
1 parent bd4c22b commit e8b572b912deee1c2cec493782b1172fccd75f90 @malcolmt malcolmt committed Sep 23, 2006
Showing with 3 additions and 1 deletion.
  1. +3 −1 django/contrib/admin/templatetags/admin_modify.py
@@ -160,8 +160,10 @@ def render(self, context):
context.push()
if relation.field.rel.edit_inline == models.TABULAR:
bound_related_object_class = TabularBoundRelatedObject
- else:
+ elif relation.field.rel.edit_inline == models.STACKED:
bound_related_object_class = StackedBoundRelatedObject
+ else:
+ bound_related_object_class = relation.field.rel.edit_inline
original = context.get('original', None)
bound_related_object = relation.bind(context['form'], original, bound_related_object_class)
context['bound_related_object'] = bound_related_object

0 comments on commit e8b572b

Please sign in to comment.