X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/058cbe2bec62ff602f5f0dd2d0bad872ea0acad1..281e079a27d5f168d0a57c79b17850bc4fcc65a1:/src/wolnelektury/views.py?ds=sidebyside 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