API Reference

Models

Mixins

Forms

Views

Managers

Template Tags

django_user_connections.templatetags.user_connection_tags.get_connected_user(user_connection, auth_user)[source]

Gets the user the authenticated user is connected with.

Constants

class django_user_connections.constants.Status[source]

The different status’s a user connection can be in.

Field ACCEPTED:an accepted and current user connection
Field DECLINED:a declined user connection. This connection was never in an ACCEPTED state, or active.
Field PENDING:the user connection is pending and waiting on a response from the user.
Field INACTIVE:represents a user connection for two users that was once accepted and is no longer.

Helper Methods

django_user_connections.get_user_connection_model()[source]

Return the UserConnection model that is active in this project.

This is the same pattern user for django’s “get_user_model()” method. To allow you to set the model instance to a different model subclass.