Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install django-relationships

How to install django-relationships

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install django-relationships
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.3.0
0.3.2Never BuiltWhy not?
0.3.0 Available View build log
0.2.3 Available View build log
0.2.2 Available View build log
0.2.1 Available View build log
Windows (64-bit)
0.3.0
0.3.2Never BuiltWhy not?
0.3.0 Available View build log
0.2.3 Available View build log
0.2.2 Available View build log
0.2.1 Available View build log
Mac OS X (10.5+)
0.3.0
0.3.2Never BuiltWhy not?
0.3.0 Available View build log
0.2.3 Available View build log
0.2.2 Available View build log
0.2.1 Available View build log
Linux (32-bit)
0.3.2 Available View build log
0.3.0 Available View build log
0.2.3 Available View build log
0.2.2 Available View build log
0.2.1 Available View build log
Linux (64-bit)
0.3.2 Available View build log
0.3.0 Available View build log
0.2.3 Available View build log
0.2.2 Available View build log
0.2.1 Available View build log
 
Lastest release
version 0.3.2 on Nov 21st, 2012

Descriptive relationships between auth.users:

In [4]: john.relationships.friends()
Out[4]: [<User: Yoko>]

In [5]: john.relationships.following()
Out[5]: [<User: Paul>, <User: Yoko>]

In [6]: john.relationships.followers()
Out[6]: [<User: Yoko>]

In [7]: john.relationships.blockers()
Out[7]: [<User: Paul>]

In [8]: paul.relationships.blocking()
Out[8]: [<User: John>]

You can create as many types of relationships as you like, or just use the default ones, 'following' and 'blocking'.

From, To and Symmetrical

Relationship types define each of the following cases:

  • from - 'following', who I am following
  • to - 'followers', who is following me
  • symmetrical - 'friends', we follow eachother

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'.

Admin Interface

Relationships hook right into the pre-existing User admin, and appear below the 'Groups' inline.

Installation

python setup.py install

OR

put the relationships folder on your python-path

Subscribe to package updates

Last updated Nov 21st, 2012

Download Stats

Last month:7

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.