thunfisch is a user on chaos.social. You can follow them or interact with them if you have an account anywhere in the fediverse.
thunfisch @thunfisch

So, raising an PermissionDenied exception from a CBV (return False in test_func() for UserPassesTestMixin with raise_exception = True) fails epically:

permission_denied() got an unexpected keyword argument 'exception'

Can any folks out here explain what I'm doing wrong? Docs are not helping, google-fu is not strong enough

· Web · 1 · 1

Ah, my custom handler403 function had a bad function signature after upgrading to 2.0. fixed.