Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Changing 'login' function for backwards compability

Pacu27d54cf624c46
diff --git a/saleor/registration/views.py b/saleor/registration/views.py
index 0192ea8d86..265681ccde 100644
--- a/saleor/registration/views.py
+++ b/saleor/registration/views.py
@@ -14,7 +14,7 @@ from .forms import LoginForm, SignupForm, SetPasswordForm
def login(request):
kwargs = {
'template_name': 'account/login.html', 'authentication_form': LoginForm}
- return django_views.LoginView.as_view(**kwargs)(request, **kwargs)
+ return django_views.login(request, **kwargs)
@login_required
diff --git a/templates/materializecssform/formset.html b/templates/materializecssform/formset.html
index e3e319dce2..a442d6f2bf 100644
--- a/templates/materializecssform/formset.html
+++ b/templates/materializecssform/formset.html
@@ -1,7 +1,5 @@
{{ formset.management_form }}
{% for form in formset %}
-
{% include "materializecssform/form.html" with form=form %}
-
{% endfor %}