Any pointers on how I can update the data for a model on each access?
If I have code that accesses a Person object like so:
p = Person.objects.get(username=’darkpixel’)
I would like to fire off my own process to check an external site and possibly update the Person model before returning it.
I’m hesitant to override the get method. Is there a better way?
That code definitely belongs in your
Manager. I wouldn’t overrideget, but I would create a function namedget_and_resyncto do the job for you.