:py:mod:`oioioi.contests.auth` ============================== .. py:module:: oioioi.contests.auth Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: oioioi.contests.auth.ContestPermissionsAuthBackend .. py:class:: ContestPermissionsAuthBackend Bases: :py:obj:`object` .. py:attribute:: description .. py:attribute:: supports_authentication :annotation: = False .. py:method:: authenticate(request, **kwargs) .. py:method:: filter_for_perm(obj_class, perm, user) Provides a :class:`django.db.models.Q` expression which can be used to filter `obj_class` queryset for objects `o` such that `has_perm(user, perm, o)` is True. .. py:method:: has_perm(user_obj, perm, obj=None)