X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/30ceb98e6272767f8f271ecb0de30858e1c1a88e..2c8cbdedff9b723bd481e51d3aea771dd93fee7a:/src/wolnelektury/forms.py?ds=inline diff --git a/src/wolnelektury/forms.py b/src/wolnelektury/forms.py index 180406500..f04501f99 100644 --- a/src/wolnelektury/forms.py +++ b/src/wolnelektury/forms.py @@ -2,12 +2,16 @@ # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # from allauth.socialaccount.forms import SignupForm -from django.contrib.auth.forms import UserCreationForm +from django.contrib.auth.forms import AuthenticationForm, UserCreationForm from django.contrib.auth.models import User from newsletter.forms import NewsletterForm +class WLAuthenticationForm(AuthenticationForm): + template_name = '2022/form.html' + + # has to be this order, because otherwise the form is lacking fields class RegistrationForm(UserCreationForm, NewsletterForm): data_processing_part2 = '''\