beat.web.team.api module¶
-
class
beat.web.team.api.UserTeamListView(**kwargs)[source]¶ Bases:
beat.web.common.mixins.CommonContextMixin,rest_framework.generics.ListCreateAPIViewLists the team from a user and create new teams
-
model¶ alias of
beat.web.team.models.Team
-
serializer_class¶
-
writing_serializer_class¶
-
permission_classes= [<class 'rest_framework.permissions.IsAuthenticated'>]¶
-
-
class
beat.web.team.api.TeamDetailView(**kwargs)[source]¶ Bases:
beat.web.common.mixins.CommonContextMixin,rest_framework.generics.RetrieveUpdateDestroyAPIViewThis view provides the details of a team
-
model¶ alias of
beat.web.team.models.Team
-
serializer_class¶
-
writing_serializer_class¶
-
get_permissions()[source]¶ Instantiates and returns the list of permissions that this view requires.
-
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)
-
-
class
beat.web.team.api.TeamListView(**kwargs)[source]¶ Bases:
beat.web.common.mixins.CommonContextMixin,rest_framework.generics.ListAPIViewList all teams of the caller
-
model¶ alias of
beat.web.team.models.Team
-
serializer_class¶
-
permission_classes= [<class 'rest_framework.permissions.IsAuthenticated'>]¶
-
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)
-