Multiple user profiles in django 2.1
up vote
0
down vote
favorite
I'm currently designing a CRM-Software, which enables the user to save information about his jobs. The idea is that the user can have different Useraccounts for different Workfields he's working in. For example, if someone works as a freelance CS-engineer and as a Dj at the same time.
My problem is that i don't know how to model the Userprofile into my system. My first idea was to put an active_userprofile
FK on my User model, which my User sets via the App. This attribute would be used to always fetch the related data for the needed user profile.
This sounded good at first, but the more i thought about it it felt like a hack.
Because what i think will happen, when i use the App simultaneously on PC & Mobile(Android/iOS) is, that the users won't be able to use seperate user profiles on both (or more) devices.
So my question is:
- What is the best way to implement a System where the User can have multiple Userprofiles and user them on different devices simultaneously?
django python-3.x django-2.1
add a comment |
up vote
0
down vote
favorite
I'm currently designing a CRM-Software, which enables the user to save information about his jobs. The idea is that the user can have different Useraccounts for different Workfields he's working in. For example, if someone works as a freelance CS-engineer and as a Dj at the same time.
My problem is that i don't know how to model the Userprofile into my system. My first idea was to put an active_userprofile
FK on my User model, which my User sets via the App. This attribute would be used to always fetch the related data for the needed user profile.
This sounded good at first, but the more i thought about it it felt like a hack.
Because what i think will happen, when i use the App simultaneously on PC & Mobile(Android/iOS) is, that the users won't be able to use seperate user profiles on both (or more) devices.
So my question is:
- What is the best way to implement a System where the User can have multiple Userprofiles and user them on different devices simultaneously?
django python-3.x django-2.1
You should probably setProfile
model, and let the user choose which profile to use after login. You will then have a unique user in all your platform, andN
profiles for each user.
– Cheche
Nov 14 at 17:29
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm currently designing a CRM-Software, which enables the user to save information about his jobs. The idea is that the user can have different Useraccounts for different Workfields he's working in. For example, if someone works as a freelance CS-engineer and as a Dj at the same time.
My problem is that i don't know how to model the Userprofile into my system. My first idea was to put an active_userprofile
FK on my User model, which my User sets via the App. This attribute would be used to always fetch the related data for the needed user profile.
This sounded good at first, but the more i thought about it it felt like a hack.
Because what i think will happen, when i use the App simultaneously on PC & Mobile(Android/iOS) is, that the users won't be able to use seperate user profiles on both (or more) devices.
So my question is:
- What is the best way to implement a System where the User can have multiple Userprofiles and user them on different devices simultaneously?
django python-3.x django-2.1
I'm currently designing a CRM-Software, which enables the user to save information about his jobs. The idea is that the user can have different Useraccounts for different Workfields he's working in. For example, if someone works as a freelance CS-engineer and as a Dj at the same time.
My problem is that i don't know how to model the Userprofile into my system. My first idea was to put an active_userprofile
FK on my User model, which my User sets via the App. This attribute would be used to always fetch the related data for the needed user profile.
This sounded good at first, but the more i thought about it it felt like a hack.
Because what i think will happen, when i use the App simultaneously on PC & Mobile(Android/iOS) is, that the users won't be able to use seperate user profiles on both (or more) devices.
So my question is:
- What is the best way to implement a System where the User can have multiple Userprofiles and user them on different devices simultaneously?
django python-3.x django-2.1
django python-3.x django-2.1
edited Nov 14 at 17:59
Cheche
751118
751118
asked Nov 10 at 19:32
Buja
12
12
You should probably setProfile
model, and let the user choose which profile to use after login. You will then have a unique user in all your platform, andN
profiles for each user.
– Cheche
Nov 14 at 17:29
add a comment |
You should probably setProfile
model, and let the user choose which profile to use after login. You will then have a unique user in all your platform, andN
profiles for each user.
– Cheche
Nov 14 at 17:29
You should probably set
Profile
model, and let the user choose which profile to use after login. You will then have a unique user in all your platform, and N
profiles for each user.– Cheche
Nov 14 at 17:29
You should probably set
Profile
model, and let the user choose which profile to use after login. You will then have a unique user in all your platform, and N
profiles for each user.– Cheche
Nov 14 at 17:29
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53242679%2fmultiple-user-profiles-in-django-2-1%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You should probably set
Profile
model, and let the user choose which profile to use after login. You will then have a unique user in all your platform, andN
profiles for each user.– Cheche
Nov 14 at 17:29