James Bennett wrote: > On Mon, Aug 17, 2009 at 11:35 AM, James Bennett<[email protected]> wrote: > >> def __getattr(self, name): >> if hasattr(self.user, name): >> return getattr(self.user, name) >> else: >> return getattr(self.profile, name) >> > > And for some reason gmail ate the trailing double underscores -- > that's "def __getattr__(self, name):" > > >
I figured that, but what about setattr? That would require way more changes to the model... There's gotta be a good way other than 121ing a table :( --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" 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-developers?hl=en -~----------~----~----~----~------~----~------~--~---
