from rest_framework.serializers import ModelSerializer
from .models import User, Historico


class UserSerializer(ModelSerializer):
    class Meta:
        model = User
        fields = ('id', 'username', 'password', 'nivel')


class HistoricoSerializer(ModelSerializer):
    class Meta:
        model = Historico
        fields = ('id', 'cidade', 'databusca', 'jsonDados')

c2752645fd9b1277023e07be6d7019552b199bcf
<mask token>

<mask token>


class HistoricoSerializer(ModelSerializer):


    class Meta:
        model = Historico
        fields = 'id', 'cidade', 'databusca', 'jsonDados'

<mask token>


class UserSerializer(ModelSerializer):


    class Meta:
        model = User
        fields = 'id', 'username', 'password', 'nivel'


class HistoricoSerializer(ModelSerializer):


    class Meta:
        model = Historico
        fields = 'id', 'cidade', 'databusca', 'jsonDados'

from rest_framework.serializers import ModelSerializer
from .models import User, Historico


class UserSerializer(ModelSerializer):


    class Meta:
        model = User
        fields = 'id', 'username', 'password', 'nivel'


class HistoricoSerializer(ModelSerializer):


    class Meta:
        model = Historico
        fields = 'id', 'cidade', 'databusca', 'jsonDados'

from rest_framework.serializers import ModelSerializer
from .models import User, Historico


class UserSerializer(ModelSerializer):
    class Meta:
        model = User
        fields = ('id', 'username', 'password', 'nivel')


class HistoricoSerializer(ModelSerializer):
    class Meta:
        model = Historico
        fields = ('id', 'cidade', 'databusca', 'jsonDados')
