I use the save() method to override the models.Model method in order to manipulate a bit of the properties before saving them in the DB (for example, issuing a Google MAPS API call to get geolocation of an address).
However, I would not like to issue a call to Google everytime I update an entry via the admin panel, but only when I insert a new entry.
Is there any easy way to do it (instead of running a query against the DB inside the save() method and check if the object already exists)?
Meir
check the primary key of that said object on save()
something like that
source
read the link thoroughly, theres a gotcha there
EDIT: gotchas, read the comments for more gotchas