Posts by Eduardo Silva • 36 points
1 post
-
2
votes2
answers594
viewsA: How do I test user type and send to different views in DJANGO Generic views
You can try something like this: from django.contrib.auth.mixins import AccessMixin class SellerLoginRequiredMixin(AccessMixin): def dispatch(self, request, *args, **kwargs): if not…