Merge pull request #370 from ShaheedHaque/srh_issue_367_update_extra_views
Restore compatibility with current versions of extra-views (issue #367).fix_request_path_info
commit
02a7530e83
|
|
@ -25,7 +25,7 @@ class PolymorphicFormSetMixin(object):
|
||||||
formset_class = BasePolymorphicModelFormSet
|
formset_class = BasePolymorphicModelFormSet
|
||||||
|
|
||||||
#: Default 0 extra forms
|
#: Default 0 extra forms
|
||||||
extra = 0
|
factory_kwargs = {'extra': 0}
|
||||||
|
|
||||||
#: Define the children
|
#: Define the children
|
||||||
# :type: list[PolymorphicFormSetChild]
|
# :type: list[PolymorphicFormSetChild]
|
||||||
|
|
@ -96,7 +96,7 @@ class PolymorphicInlineFormSetView(PolymorphicFormSetMixin, extra_views.InlineFo
|
||||||
formset_class = BasePolymorphicInlineFormSet
|
formset_class = BasePolymorphicInlineFormSet
|
||||||
|
|
||||||
|
|
||||||
class PolymorphicInlineFormSet(PolymorphicFormSetMixin, extra_views.InlineFormSet):
|
class PolymorphicInlineFormSet(PolymorphicFormSetMixin, extra_views.InlineFormSetFactory):
|
||||||
"""
|
"""
|
||||||
An inline to add to the ``inlines`` of
|
An inline to add to the ``inlines`` of
|
||||||
the :class:`~extra_views.advanced.CreateWithInlinesView`
|
the :class:`~extra_views.advanced.CreateWithInlinesView`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue