In my site_users model (which extends auth user), I've got:
def save(self):
self.geocode = self.get_geocode()
super(SiteUser, self).save() # Call the "real" save() method.
get_geocode makes a call out to google's geocoding service, gives the
city and state, and returns the geocode. Since there's a lot of
activity on site_users, updating for board post counts and all sorts
of other things, I don't want to call get_geocode unless city and
state have actually changed.
Is there a way to check if they've changed. I know there's an
ifchanged filter for templates, but don't know about this.
Or should I move it to the update profile view, and only get geocode
when they actually update their profile?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---