Re: How to save a model...

2009-07-31 Thread zayatzz
Thanks Malcolm, I will test it when i get back home :) Alan On Jul 31, 9:46 am, Malcolm Tredinnick wrote: > On Thu, 2009-07-30 at 12:33 -0700, zayatzz wrote: > > ... Hello! > > > I have a model (profile) which's only required field is its foreignkey > > - django.contrib.auth.User. > > > Follow

Re: How to save a model...

2009-07-30 Thread Malcolm Tredinnick
On Thu, 2009-07-30 at 12:33 -0700, zayatzz wrote: > ... Hello! > > I have a model (profile) which's only required field is its foreignkey > - django.contrib.auth.User. > > Following the example of forementioned model and its manager i created > manager for the profile: > > class ProfileManager(

Re: How to save a model...

2009-07-30 Thread zayatzz
I did some thinking over night, but still cant figure this one out on my own :) If i want to save foreign key like this, then what should i send to another model, if another object will not work? Alan. --~--~-~--~~~---~--~~ You received this message because you are

How to save a model...

2009-07-30 Thread zayatzz
... Hello! I have a model (profile) which's only required field is its foreignkey - django.contrib.auth.User. Following the example of forementioned model and its manager i created manager for the profile: class ProfileManager(models.Manager): def create_profile(self, username):