mirror of
https://github.com/not-kennethreitz/convore.json.git
synced 2026-06-05 23:20:19 +00:00
1 line
1.2 KiB
JSON
1 line
1.2 KiB
JSON
[{"user_id": 26414, "stars": [], "topic_id": 48510, "date_created": 1323258106.409601, "message": "Ppl, how do you solving multiple user profiles functionality in Django? I'm not fan of overriding default User model, so my approach was like this: http://pastie.org/2979946\nBut with abstract UserProfile i cant use this model as AUTH_PROFILE_MODULE. As for me, calling this models like \"user.doctorprofile\" or \"user.patientprofile\" doesn't looks good. How i can improve my approach, i maybe i should use another one?", "group_id": 81, "id": 2716227}, {"user_id": 26414, "stars": [], "topic_id": 48510, "date_created": 1323258250.1493919, "message": "I hope, there is any solution, where i can just call user.get_profile() and get proper user profile model (doctor, patient) depending on user role.", "group_id": 81, "id": 2716233}, {"user_id": 41664, "stars": [], "topic_id": 48510, "date_created": 1324439190.685828, "message": "I have often thought about that, but never have had a need to do so yet. However, if you haven't found a solution already I'd start by looking http://stackoverflow.com/questions/7313336/django-multiple-user-profiles-subprofiles as it sounds like it would work in your case to do something similar.", "group_id": 81, "id": 2745084}] |