Descriptive relationships between auth.users:
>>> john.relationships.friends()
[<User: Yoko>]
>>> john.relationships.following()
[<User: Paul>, <User: Yoko>]
>>> john.relationships.followers()
[<User: Yoko>]
>>> john.relationships.blockers()
[<User: Paul>]
>>> paul.relationships.blocking()
[<User: John>]
You can create as many types of relationships as you like, or just use the default ones, ‘following’ and ‘blocking’.
Relationship types define each of the following cases:
Relationship types can be login_required, or private, and if you want to make a relationship type unviewable (i.e. you may not want to allow users to see who is blocking them), simply give it a unmatchable slug, like ‘!blockers’.
Contents: