Systemy-rozmyte-sql/backend/cars/serializers.py
2022-01-23 13:45:56 +01:00

17 lines
353 B
Python

from rest_framework import serializers
from .models import Car
class CarSerializer(serializers.ModelSerializer):
class Meta:
model = Car
fields = [
"mark",
"model",
"mileage",
"production_year",
"engine_capacity",
"combustion",
"price",
]