Created
July 15, 2019 18:34
-
-
Save aballah-chamakh/e33ca40e202bbd835156824a3e4460ee 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
| from rest_framework import serializers | |
| from .models import Door | |
| class DoorSerializer(serializers.ModelSerializer): | |
| class Meta : | |
| model = Door | |
| fields = ['id','name','opened'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment