Systemy-rozmyte-sql/backend/cars/serializers.py
Bartosz Karwacki 52649a0beb Lint
2022-01-23 19:07:02 +01:00

18 lines
354 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",
]