X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/058cbe2bec62ff602f5f0dd2d0bad872ea0acad1..5027ba83068235d964eeef428751ce8b9bb290db:/src/wolnelektury/views.py?ds=inline diff --git a/src/wolnelektury/views.py b/src/wolnelektury/views.py index 7573df5ff..6108122c7 100644 --- a/src/wolnelektury/views.py +++ b/src/wolnelektury/views.py @@ -115,7 +115,7 @@ class LoginRegisterFormView(LoginFormView): def extra_context(self, request, obj): return { - "register_form": placeholdized(UserCreationForm(prefix='register')), + "register_form": placeholdized(RegistrationForm(prefix='register')), "register_submit": _('Register'), } @@ -187,4 +187,8 @@ def widget(request): def exception_test(request): - raise Exception('Exception test') \ No newline at end of file + msg = request.GET.get('msg') + if msg: + raise Exception('Exception test: %s' % msg) + else: + raise Exception('Exception test') \ No newline at end of file