from rest_framework import serializers
from .models import House, AREA_UNIT_CHOICES, HOME_TYPE_CHOICES


class HouseSerializer(serializers.ModelSerializer):


    class Meta:
        model = House
        fields = ('id', 'area_unit', 'bathrooms', 'bedrooms', 'home_size',
            'home_type', 'last_sold_date', 'last_sold_price', 'link',
            'price', 'property_size', 'rent_price', 'rentzestimate_amount',
            'rentzestimate_last_updated', 'tax_value', 'tax_year',
            'year_built', 'zestimate_amount', 'zestimate_last_updated',
            'zillow_id', 'address', 'city', 'state', 'zipcode')

349868c7030eb1e9eb892bdcc441576cdba400d9
<mask token>

<mask token>


class HouseSerializer(serializers.ModelSerializer):


    class Meta:
        model = House
        fields = ('id', 'area_unit', 'bathrooms', 'bedrooms', 'home_size',
            'home_type', 'last_sold_date', 'last_sold_price', 'link',
            'price', 'property_size', 'rent_price', 'rentzestimate_amount',
            'rentzestimate_last_updated', 'tax_value', 'tax_year',
            'year_built', 'zestimate_amount', 'zestimate_last_updated',
            'zillow_id', 'address', 'city', 'state', 'zipcode')

from rest_framework import serializers
from .models import House, AREA_UNIT_CHOICES, HOME_TYPE_CHOICES


class HouseSerializer(serializers.ModelSerializer):


    class Meta:
        model = House
        fields = ('id', 'area_unit', 'bathrooms', 'bedrooms', 'home_size',
            'home_type', 'last_sold_date', 'last_sold_price', 'link',
            'price', 'property_size', 'rent_price', 'rentzestimate_amount',
            'rentzestimate_last_updated', 'tax_value', 'tax_year',
            'year_built', 'zestimate_amount', 'zestimate_last_updated',
            'zillow_id', 'address', 'city', 'state', 'zipcode')
