Tuesday, February 21, 2017

Privacy settings like Facebook in Django.

I want to implement privacy settings on my extended UserProfile Model where the user can decide who can see his field (say email for now).
The options looks something like this,

public - any one can view his email
friends_of_friends - only friends and friends of friends can view his email
friends - only his friends can view his email
friend_list - only a list of friends (pre defined) can view his email.

I want to implement the same for n fields in the Model (phone number, work, education, etc..).

I don't need code but some directions to solve it. Code examples won't hurt. 

--
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/26a3f2d8-d588-448b-8dc0-086c37a11168%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment