Created
August 7, 2015 10:37
-
-
Save SafPlusPlus/dc3b70e5270a3f708edf to your computer and use it in GitHub Desktop.
This file contains 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
from rest_framework import serializers | |
from .models import TestModel | |
class TestSerializer(serializers.HyperlinkedModelSerializer): | |
class Meta: | |
model = TestModel | |
fields = ('name', 'reference') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment