Created
September 8, 2014 14:54
-
-
Save guilhermecarvalhocarneiro/c7f14d2f0b583a3c921d to your computer and use it in GitHub Desktop.
SerializerAbastecimento
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
class AbastecimentoSerializer(serializers.ModelSerializer): | |
class Meta: | |
model = Abastecimento | |
fields = ('posto', 'valor_etanol', 'valor_gasolina', 'valor_diesel') | |
depth = 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment