Well, it depends on what you want to do exactly, you could create something
like this:
class UserProfile(models.Model):
common_data
class ClientProfile(UserProfile):
specific_data
class StudentProfile(UserProfile):
specific_data
class TeacherProfile(UserProfile):
spe
On 13-8-2012 21:51, Anderson wrote:
> I have 3 types of users
>
> Clients
> Students
> Teachers
>
> and each one have different fields and AUTH_PROFILE_MODULE is not going to
> work with 3 profiles.
Yeah, the auth module doesn't support this very well. I'd recommend
storing the shared informati
Sorry :D
I have 3 types of users
Clients
Students
Teachers
and each one have different fields and AUTH_PROFILE_MODULE is not going to
work with 3 profiles.
--
Anderson Dias Borges
Senior Analyst Developer
Tu cumprirás o desejo do meu coração se eu Te buscar...
I can't see but I'll take my
You're going to have to be more specific.
On Mon, Aug 13, 2012 at 3:36 PM, Anderson wrote:
> What's the best way to work with multiple profile on Django?
>
> --
> Anderson Dias Borges
> Senior Analyst Developer
>
> Tu cumprirás o desejo do meu coração se eu Te b
What's the best way to work with multiple profile on Django?
--
Anderson Dias Borges
Senior Analyst Developer
Tu cumprirás o desejo do meu coração se eu Te buscar...
I can't see but I'll take my chances
To hear You call my name
--
You received this message because you are su
Thanks tom,
that worked and now understand what i was doing wrong.
much appreciated.
On Feb 24, 7:08 am, Tom Evans wrote:
> On Fri, Feb 24, 2012 at 2:55 PM, richard wrote:
> > Hi Tom,
>
> > Thanks for your reply. So for clarity i thought i was getting the
> > userprofile to pass into the bound
On Fri, Feb 24, 2012 at 2:55 PM, richard wrote:
> Hi Tom,
>
> Thanks for your reply. So for clarity i thought i was getting the
> userprofile to pass into the bound form so that the userprofile_id in
> the UserProfilePic would get populated/saved. as if i leave the
> instance as None
> then i get
Hi Tom,
Thanks for your reply. So for clarity i thought i was getting the
userprofile to pass into the bound form so that the userprofile_id in
the UserProfilePic would get populated/saved. as if i leave the
instance as None
then i get an error saying that userprofile_id cannot be empty? also,
is
On Fri, Feb 24, 2012 at 2:20 PM, richard wrote:
> Hi, Am i doing this in the correct way?
> […]
>
> any help would be greatly appreciated.
>
> […]
>
> from .models import UserProfilePic
> class UserProfilePicForm(ModelForm):
> class Meta:
> model = UserProfilePic
> fields = ('prof
Hi, Am i doing this in the correct way? I am trying to accomplish a
UserProfile having multiple profile images. IE if a user uploads a
profile photo it gets saved as the default profile pic but if they
upload another pic then that becomes the default pic but i need to
keep records of all the
10 matches
Mail list logo