Viewsets

class memopolis.api.viewsets.ContentViewSet(**kwargs)[source]
authentication_classes = []
get_queryset()[source]

Get the list of items for this view. This must be an iterable, and may be a queryset. Defaults to using self.queryset.

This method should always be used rather than accessing self.queryset directly, as self.queryset gets evaluated only once, and those results are cached for all subsequent requests.

You may want to override this if you need to provide different querysets depending on the incoming request.

(Eg. return a list of items that is specific to the user)

permission_classes = []
queryset = QuerySet
serializer_class

alias of ContentSerializer

class memopolis.api.viewsets.CsrfExemptSessionAuthentication[source]
enforce_csrf(request)[source]

Enforce CSRF validation for session based authentication.

class memopolis.api.viewsets.CustomAuthToken(**kwargs)[source]
authentication_classes = (<class 'memopolis.api.viewsets.CsrfExemptSessionAuthentication'>, <class 'rest_framework.authentication.BasicAuthentication'>)
class memopolis.api.viewsets.FeedbackTicketViewSet(**kwargs)[source]
authentication_classes = []
perform_create(serializer)[source]
permission_classes = []
queryset = QuerySet
serializer_class

alias of FeedbackTicketSerializer

class memopolis.api.viewsets.TeamViewSet(**kwargs)[source]
filterset_fields = ['id']
get_queryset()[source]

Get the list of items for this view. This must be an iterable, and may be a queryset. Defaults to using self.queryset.

This method should always be used rather than accessing self.queryset directly, as self.queryset gets evaluated only once, and those results are cached for all subsequent requests.

You may want to override this if you need to provide different querysets depending on the incoming request.

(Eg. return a list of items that is specific to the user)

perform_create(serializer)[source]
permission_classes = [<class 'rest_framework.permissions.IsAuthenticated'>]
queryset = QuerySet
serializer_class

alias of TeamSerializer

class memopolis.api.viewsets.UserViewSet(**kwargs)[source]
filterset_fields = ['organization', 'username']
queryset = QuerySet
serializer_class

alias of UserSerializer

class memopolis.api.viewsets.WorldObjectViewSet(**kwargs)[source]
authentication_classes = []
permission_classes = []
queryset = QuerySet
serializer_class

alias of WorldObjectSerializer