(profile images provided freepik.com)
** Fetch Dealers by location **

As part of the project, additional fields have been added to the Django models 'CarMake' and 'CarModel'. Below are the details of these new fields.
CarMake Model:
website = models.URLField(blank=True, null=True)- This field stores the official website URL for the car make. It is optional and can be left blank or set to null.
CarModel Model:
CAR_TYPESfield has been updated with new choices:CAR_TYPES = [ ('COUPE', 'Coupe'), ('HATCHBACK', 'Hatchback'), ('HYBRID', 'Hybrid'), # Add more choices as required ]
There are other fields created in the 'CarModel' include:
# Other fields as needed
dealer_id = models.IntegerField(default=1)
seating_capacity = models.IntegerField(default=4)
number_of_doors = models.IntegerField(default=4)
transmission = models.CharField(max_length=9, default='manual')
FUEL_TYPES = [
('PETROL', 'Petrol'),
('DIESEL', 'Diesel'),
('HYBRID/PETROL', 'Hybrid/Petrol'),
('HYBRID/DIESEL', 'Hybrid/Diesel'),
('GAS', 'Gas'),
('ELECTRIC', 'Electric'),
]
fuel = models.CharField(max_length=13, choices=FUEL_TYPES, default='Petrol')
mileage = models.IntegerField(default=60000,
validators=[
MaxValueValidator(3999999),
MinValueValidator(0)
])
engine_size = models.IntegerField(default=2000,
validators=[
MaxValueValidator(8000),
MinValueValidator(500)
])








