Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit e8b572b912deee1c2cec493782b1172fccd75f90 1 parent bd4c22b
Malcolm Tredinnick malcolmt authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 django/contrib/admin/templatetags/admin_modify.py
4 django/contrib/admin/templatetags/admin_modify.py
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.