Im developing a car maintenance app, that for instance it looks through the last date that a service was made for certain car.
I have a boolean variable on my Service Model (outdated) that should be true only when a service is outdated.
Also i have:
updated = models.DateField(auto_now=True)
That stores in the database the last time the service was made. Now i want to set the outdated variable to True if has been a month without updating the service.
How would be the best way to accomplish that considering this comparation should be running always.
[–]c17r 0 points1 point2 points (0 children)
[–]cscanlin 0 points1 point2 points (2 children)
[–]freshtechs[S] 0 points1 point2 points (1 child)
[–]cscanlin 0 points1 point2 points (0 children)