You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
326 B
Python
7 lines
326 B
Python
from rest_framework import serializers
|
|
from .models import Vehicle
|
|
|
|
class VehicleSerializer(serializers.ModelSerializer):
|
|
class Meta:
|
|
model = Vehicle
|
|
fields = ['id', 'vehicle_number', 'trailer1_number', 'trailer2_number', 'driver_pid', 'tare', 'tare_date', 'tare_user', 'gross', 'gross_date', 'gross_user'] |