Created
July 9, 2014 17:30
-
-
Save maryokhin/4d666f4c4961a2ac8ea2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ChannelViewSet(GetObjectByKeyMixin, ModelViewSet): | |
""" | |
View for retrieving and updating channel information. | |
""" | |
queryset = Channel.objects.all() | |
serializer_class = ChannelSerializer | |
lookup_field = 'channel_key' | |
permission_classes = (ChannelPermission,) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment