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
Diederik van der Boor 2019-07-11 22:04:58 +02:00 committed by GitHub
commit 02a7530e83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ class PolymorphicFormSetMixin(object):
formset_class = BasePolymorphicModelFormSet
#: Default 0 extra forms
extra = 0
factory_kwargs = {'extra': 0}
#: Define the children
# :type: list[PolymorphicFormSetChild]
@ -96,7 +96,7 @@ class PolymorphicInlineFormSetView(PolymorphicFormSetMixin, extra_views.InlineFo
formset_class = BasePolymorphicInlineFormSet
class PolymorphicInlineFormSet(PolymorphicFormSetMixin, extra_views.InlineFormSet):
class PolymorphicInlineFormSet(PolymorphicFormSetMixin, extra_views.InlineFormSetFactory):
"""
An inline to add to the ``inlines`` of
the :class:`~extra_views.advanced.CreateWithInlinesView`