seshat.apps.accounts.models
Classes
Model representing a user profile. |
|
Model representing a Seshat Expert. |
|
Model representing a Seshat Task. |
Functions
|
Signal handler for creating or updating a user profile. |
|
Module Contents
- class seshat.apps.accounts.models.Profile
Bases:
django.db.models.ModelModel representing a user profile.
- get_absolute_url()
Returns the url to access a particular instance of the model.
- Noindex:
- Returns:
A string of the url to access a particular instance of the model.
- Return type:
str
- PUBLICUSER = 4
- RA = 2
- ROLE_CHOICES
- SESHATADMIN = 1
- SESHATEXPERT = 3
- bio
- email_confirmed
- location
- role
- user
- class seshat.apps.accounts.models.Seshat_Expert
Bases:
django.db.models.ModelModel representing a Seshat Expert.
- RA = 'RA'
- ROLE_CHOICES
- SESHATADMIN = 'Seshat Admin'
- SESHATEXPERT = 'Seshat Expert'
- role
- user
- class seshat.apps.accounts.models.Seshat_Task
Bases:
django.db.models.ModelModel representing a Seshat Task.
- get_absolute_url()
Returns the url to access a particular instance of the model.
- Noindex:
- Returns:
A string of the url to access a particular instance of the model.
- Return type:
str
- property clickable_url
Returns a clickable URL.
- Returns:
A string of a clickable URL.
- Return type:
str
- property display_takers
Returns a string of all takers of the task.
- Returns:
A string of all takers of the task, joined with a HTML tag (“<br />”).
- Return type:
str
- giver
- taker
- task_description
- task_url
- seshat.apps.accounts.models.create_or_update_user_profile(sender, instance, created, **kwargs)
Signal handler for creating or updating a user profile.
- seshat.apps.accounts.models.full_name(self)