Fixed compatibility with Django-3.1
Initialize modelformset_factory
within the FormView
instance instead of using the class variable form_class
because get_language()
has a context only within the request/response cycle.
Initialize modelformset_factory
within the FormView
instance instead of using the class variable form_class
because get_language()
has a context only within the request/response cycle.