Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

drf model serializers

class AccountSerializer(serializers.ModelSerializer):
    class Meta:
        model = Account
        fields = ['id', 'account_name', 'users', 'created']
Source by www.django-rest-framework.org #
 
PREVIOUS NEXT
Tagged: #drf #model #serializers
ADD COMMENT
Topic
Name
6+2 =