Ticket #2508: custom_edit_inline_class.diff
File custom_edit_inline_class.diff, 942 bytes (added by , 18 years ago) |
---|
-
django/contrib/admin/templatetags/admin_modify.py
160 160 context.push() 161 161 if relation.field.rel.edit_inline == models.TABULAR: 162 162 bound_related_object_class = TabularBoundRelatedObject 163 elif relation.field.rel.edit_inline == models.STACKED: 164 bound_related_object_class = StackedBoundRelatedObject 163 165 else: 164 bound_related_object_class = StackedBoundRelatedObject166 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