Users¶
Application in charge to handle all the information and methods of the users.
Models¶
-
class
ekratia.users.models.
User
(id, password, last_login, is_superuser, username, first_name, last_name, email, is_staff, is_active, date_joined, rank)¶ -
delegate_to
(user)¶ Creates a delegated user Return the Delegate object
-
get_available_delegates
(name=None)¶ Get users not delegated by me and exclude myself @param name: Filters available users by name
-
get_avatar
¶ Gets avatar from Django Avatar or Facebook
-
get_data_dictionary
()¶ Return dictionary with basic information of the user
-
get_full_name_or_username
¶ Get Full Name or Username
-
get_graph
()¶ Creates a graph for the user based on Delegation
-
get_users_delegated_by_me
()¶ Returns users delegated by me
-
get_users_delegated_to_me
()¶ Returns users that delegated me
-
get_vote_referendum
(referendum)¶ Return the value vote on a referendum if exists
-
undelegate_to
(user)¶ Undelegate an user Returns True if success
-
vote_count_for_referendum
(referendum)¶ Calculates vote value depending on Delegates
-