Re: Multiple UserProfile

2011-06-11 Thread Ignacio Soto
Ok, kenneth i havent seen it that way. I will use your model. I really apreciate it Thanks ignacio Soto Reveco Staff IngeHost El 12-06-2011 0:39, "Kenneth Gonsalves" escribió: On Sat, 2011-06-11 at 21:12 -0400, Ignacio Soto wrote: > No, the same person cant be costumer and se... I have a bas

Re: Multiple UserProfile

2011-06-11 Thread Kenneth Gonsalves
On Sat, 2011-06-11 at 21:12 -0400, Ignacio Soto wrote: > No, the same person cant be costumer and seller. I have a basic profile with information common to both customer and seller called Person and separate models called customer and seller with foreign key to person. Thus one person may have mul

Re: Multiple UserProfile

2011-06-11 Thread Venkatraman S
On Sun, Jun 12, 2011 at 6:42 AM, Ignacio Soto wrote: > No, the same person cant be costumer and seller. > Then why not have a 'type' in your profile which tracks the user type? -V http://blizzardzblogs.blogspot.com/ -- You received this message because you are subscribed to the Google Groups

Re: Multiple UserProfile

2011-06-11 Thread Ignacio Soto
No, the same person cant be costumer and seller. ignacio Soto Reveco Staff IngeHost El 11-06-2011 21:37, "Kenneth Gonsalves" escribió: On Fri, 2011-06-10 at 23:51 -0400, Ignacio Soto wrote: > i want to create 2 user profile: cutomer an... can the same person be both customer and seller? -- rega

Re: Multiple UserProfile

2011-06-11 Thread Kenneth Gonsalves
On Fri, 2011-06-10 at 23:51 -0400, Ignacio Soto wrote: > i want to create 2 user profile: cutomer and seller with diferents > fields > and quantity of fields can the same person be both customer and seller? -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox http://ilugcbe.techstud.or

Re: Multiple UserProfile

2011-06-11 Thread Ignacio Soto
Ok, thannks i will try, and let you know... Cheers ignacio Soto Reveco Staff IngeHost El 11-06-2011 11:41, "Shawn Milochik" escribió: Oops, correction: You'd use user.seller_profile and user.customer_profile if you've set it up as a OneToOneField -- the get() is unnecessary (and won't work).

Re: Multiple UserProfile

2011-06-11 Thread Shawn Milochik
Oops, correction: You'd use user.seller_profile and user.customer_profile if you've set it up as a OneToOneField -- the get() is unnecessary (and won't work). You'd use get() if you used a ForeignKey with unique = True, but that's silly because a OneToOneField does exactly that but more explici

Re: Multiple UserProfile

2011-06-11 Thread Shawn Milochik
Just make your models for the customer and seller profiles, and attach them to users with a OneToOne field. You can only specify one to be used with User.get_profile(), but I've learned from discussions among core developers that get_profile() is something many consider useless. It's even been

Multiple UserProfile

2011-06-11 Thread Ignacio Soto
Hi there... i want to create 2 user profile: cutomer and seller with diferents fields and quantity of fields but there is a problem with Get_Profile() i've reading about it and i found some inheritance hacks.. but i doubt it was the good way? what is the right way to do it? thanks -- __ Ignac