Re: Modify Uset.get_profile(): Create new if it does not exist.

2007-10-09 Thread Jarek Zgoda
I'm looking for the same, but I want to "override" __str__ in class User to return something other that username. One thing comes to my mind, would it be possible to change the object's method in some signal hook (i.e. class_prepared)? I don't have Django handy so I cann't check for now by myself.

Modify Uset.get_profile(): Create new if it does not exist.

2007-10-09 Thread Thomas Guettler
Hi, I would like to modify User.get_profile(), that it creates a new profile, if does not exist. I don't want to modify the django source for me. One solution would be, to replace this method in a middleware for every request. But that's not a nice solution. Subclassing could be done, too. But