Hay all, my object doesnt seem to update when i call the save() method
heres my code
car = Car.objects.get(pk=car_id)
car.views += 1
car.save()
and the model
views = models.FloatField(max_length=1000)
I do have a save() override method, could this cause a problem?
def save(self):
d = timedelta(days=self.expires_in)
if not self.id:
self.expires_on = datetime.now() + d
super(Car, self).save()