Monday, January 29, 2018

Re: view user profile access restriction

On Monday, 29 January 2018 05:57:55 UTC, suabiut wrote:
I manage to fixed it. I have created two instances (profile_info and info) in my view, i use the first instance to access the information from my Profile model and the second instance to access th User model. I also set the AUTH_PROFILE_MODULE = 'Profile' in my settings.py.


The first part is fine, but AUTH_PROFILE_MODEL hasn't done anything since Django 1.7 - there's no point in setting it.
-- 
DR.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/dccb20d9-fe7f-47e5-a1f6-333f2087e4d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment