Jeff Triplett

TIL: Django UserPassesTestMixin

I stumbled on django.contrib.auth.mixins.UserPassesTestMixin while helping a friend out with a quick code review. While the test_func feels weird at first, but it’s a useful alternative to writing a bunch of one-off decorators.