I don't understand why the permission_classes attribute of a GenericView is a list. Say why is it
permission_classes = [IsAdminUser]
and not
permission_class = IsAdminUser
? Also can I put 2 or more elements in the list, if so how do I interpret this?
permission_classes = [IsAdminUser, IsAuthenticated]
Is the snippet above the same as
permission_classes = [IsAdminUser & IsAuthenticated]
? Also how should I interpret bitwise OR on the permissions?
permission_classes = [IsAdminUser | IsAuthenticated]
Thank you