<s> from __future__ import absolute_import , unicode_literals <EOL> from rest_framework import viewsets , serializers <EOL> from dbaas_credentials . models import CredentialType <EOL> class CredentialTypeSerializer ( serializers . HyperlinkedModelSerializer ) : <EOL> class Meta : <EOL> model = CredentialType <EOL> fields = ( '<STR_LIT:name>' , '<STR_LIT:type>' ) <EOL> class CredentialTypeAPI ( viewsets . ModelViewSet ) : <EOL> """<STR_LIT>""" <EOL> serializer_class = CredentialTypeSerializer <EOL> queryset = CredentialType . objects . all ( ) </s>
