Models
- class memopolis.models.Content(id, user, team, image, type, created_at, special)[source]
- Parameters:
id (AutoField) – Primary key: ID
image (FileField) – Image
type (CharField) – Type
created_at (DateTimeField) – Created at
special (CharField) – Special
Relationship fields:
- Parameters:
user (
ForeignKey
toUser
) – User (related name:files
)team (
ForeignKey
toTeam
) – Team (related name:files
)tags (
TaggableManager
toTag
) – Tags. A comma-separated list of tags. (related name:content
)tagged_items (
GenericRelation
toTaggedItem
) – Tagged items (related name:+
)
- exception DoesNotExist
- exception MultipleObjectsReturned
- created_at
Type:
DateTimeField
Created at
- get_next_by_created_at(*, field=<django.db.models.DateTimeField: created_at>, is_next=True, **kwargs)
Finds next instance based on
created_at
. Seeget_next_by_FOO()
for more information.
- get_previous_by_created_at(*, field=<django.db.models.DateTimeField: created_at>, is_next=False, **kwargs)
Finds previous instance based on
created_at
. Seeget_previous_by_FOO()
for more information.
- get_type_display(*, field=<django.db.models.CharField: type>)
Shows the label of the
type
. Seeget_FOO_display()
for more information.
- objects = <django.db.models.Manager object>
- save(*args, **kwargs)[source]
Save the current instance. Override this in a subclass if you want to control the saving process.
The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.
- tagged_items
Type: Reverse
GenericRelation
fromContent
All + of this tagged item (related name of
tagged_items
)
- tags = <taggit.managers._TaggableManager object>
- team
Type:
ForeignKey
toTeam
Team (related name:
files
)
- user
Type:
ForeignKey
toUser
User (related name:
files
)
- class memopolis.models.FeedbackTicket(id, text, emotion, category, timestamp, git_hash, uuid, screenshot, os, session_data, user)[source]
- Parameters:
id (AutoField) – Primary key: ID
text (TextField) – Text
emotion (CharField) – Emotion
category (CharField) – Category
timestamp (DateTimeField) – Timestamp
git_hash (CharField) – Git hash
uuid (UUIDField) – Uuid
screenshot (ImageField) – Screenshot
os (CharField) – Os
session_data (JSONField) – Session data
Relationship fields:
- Parameters:
user (
ForeignKey
toUser
) – User (related name:feedbackticket
)
- class Category(value)[source]
An enumeration.
- BUG = 'BU'
- FEEDBACK = 'FE'
- GENERAL = 'GE'
- HELP = 'HE'
- SUGGESTION = 'SU'
- exception DoesNotExist
- class Emotion(value)[source]
An enumeration.
- ANGRY = 'AN'
- HAPPY = 'HA'
- OK = 'OK'
- UNHAPPY = 'UN'
- exception MultipleObjectsReturned
- get_category_display(*, field=<django.db.models.CharField: category>)
Shows the label of the
category
. Seeget_FOO_display()
for more information.
- get_emotion_display(*, field=<django.db.models.CharField: emotion>)
Shows the label of the
emotion
. Seeget_FOO_display()
for more information.
- get_next_by_timestamp(*, field=<django.db.models.DateTimeField: timestamp>, is_next=True, **kwargs)
Finds next instance based on
timestamp
. Seeget_next_by_FOO()
for more information.
- get_previous_by_timestamp(*, field=<django.db.models.DateTimeField: timestamp>, is_next=False, **kwargs)
Finds previous instance based on
timestamp
. Seeget_previous_by_FOO()
for more information.
- objects = <django.db.models.Manager object>
- screenshot
Type:
ImageField
Screenshot
- session_data
Type:
JSONField
Session data
- timestamp
Type:
DateTimeField
Timestamp
- user
Type:
ForeignKey
toUser
User (related name:
feedbackticket
)
- class memopolis.models.Map(id, name, user, parent_map, quest, json, mark_for_deletion)[source]
- Parameters:
id (AutoField) – Primary key: ID
name (CharField) – Name
json (JSONField) – Json
mark_for_deletion (BooleanField) – Mark for deletion
Relationship fields:
- Parameters:
user (
ForeignKey
toUser
) – User (related name:maps
)parent_map (
ForeignKey
toMap
) – Parent map (related name:map
)quest (
ForeignKey
toQuest
) – Quest (related name:maps
)
Reverse relationships:
- Parameters:
siteconfiguration (Reverse
ForeignKey
fromSiteConfiguration
) – All Site Configurations of this map (related name ofhome_map
)map (Reverse
ForeignKey
fromMap
) – All maps of this map (related name ofparent_map
)users (Reverse
ForeignKey
fromWorldObject
) – All users of this map (related name ofmap
)
- exception DoesNotExist
- exception MultipleObjectsReturned
- map_set
Type: Reverse
ForeignKey
fromMap
All maps of this map (related name of
parent_map
)
- mark_for_deletion
Type:
BooleanField
Mark for deletion
- objects = <django.db.models.Manager object>
- parent_map
Type:
ForeignKey
toMap
Parent map (related name:
map
)
- parent_map_id
Internal field, use
parent_map
instead.
- quest
Type:
ForeignKey
toQuest
Quest (related name:
maps
)
- siteconfiguration_set
Type: Reverse
ForeignKey
fromSiteConfiguration
All Site Configurations of this map (related name of
home_map
)
- user
Type:
ForeignKey
toUser
User (related name:
maps
)
- users
Type: Reverse
ForeignKey
fromWorldObject
All users of this map (related name of
map
)
- class memopolis.models.Organization(id, name, language)[source]
- Parameters:
Relationship fields:
- Parameters:
admins (
ManyToManyField
toUser
) – Admins (related name:admin_organizations
)
Reverse relationships:
- Parameters:
users (Reverse
ForeignKey
fromUser
) – All users of this organization (related name oforganization
)teams (Reverse
ForeignKey
fromTeam
) – All teams of this organization (related name oforganization
)quests (Reverse
ForeignKey
fromQuest
) – All quests of this organization (related name oforganization
)
- exception DoesNotExist
- exception MultipleObjectsReturned
- admins
Type:
ManyToManyField
toUser
Admins (related name:
admin_organizations
)
- objects = <django.db.models.Manager object>
- quests
Type: Reverse
ForeignKey
fromQuest
All quests of this organization (related name of
organization
)
- teams
Type: Reverse
ForeignKey
fromTeam
All teams of this organization (related name of
organization
)
- users
Type: Reverse
ForeignKey
fromUser
All users of this organization (related name of
organization
)
- class memopolis.models.Quest(id, name, organization, team, json)[source]
-
Relationship fields:
- Parameters:
organization (
ForeignKey
toOrganization
) – Organization (related name:quests
)team (
ForeignKey
toTeam
) – Team (related name:quests
)
Reverse relationships:
- Parameters:
maps (Reverse
ForeignKey
fromMap
) – All maps of this quest (related name ofquest
)
- exception DoesNotExist
- exception MultipleObjectsReturned
- maps
Type: Reverse
ForeignKey
fromMap
All maps of this quest (related name of
quest
)
- objects = <django.db.models.Manager object>
- organization
Type:
ForeignKey
toOrganization
Organization (related name:
quests
)
- organization_id
Internal field, use
organization
instead.
- team
Type:
ForeignKey
toTeam
Team (related name:
quests
)
- class memopolis.models.SiteConfiguration(id, home_map, default_organization_language, tos_url, privacy_url)[source]
- Parameters:
Relationship fields:
- Parameters:
home_map (
ForeignKey
toMap
) – Home map (related name:siteconfiguration
)
- exception DoesNotExist
- exception MultipleObjectsReturned
- home_map
Type:
ForeignKey
toMap
Home map (related name:
siteconfiguration
)
- objects = <django.db.models.Manager object>
- class memopolis.models.Team(id, name, organization)[source]
-
Relationship fields:
- Parameters:
organization (
ForeignKey
toOrganization
) – Organization (related name:teams
)admins (
ManyToManyField
toUser
) – Admins (related name:admin_teams
)users (
ManyToManyField
toUser
) – Users (related name:teams
)
Reverse relationships:
- Parameters:
user (Reverse
ForeignKey
fromUser
) – All users of this team (related name ofactive_team
)files (Reverse
ForeignKey
fromContent
) – All files of this team (related name ofteam
)quests (Reverse
ForeignKey
fromQuest
) – All quests of this team (related name ofteam
)
- exception DoesNotExist
- exception MultipleObjectsReturned
- admins
Type:
ManyToManyField
toUser
Admins (related name:
admin_teams
)
- files
Type: Reverse
ForeignKey
fromContent
All files of this team (related name of
team
)
- objects = <django.db.models.Manager object>
- organization
Type:
ForeignKey
toOrganization
Organization (related name:
teams
)
- organization_id
Internal field, use
organization
instead.
- quests
Type: Reverse
ForeignKey
fromQuest
All quests of this team (related name of
team
)
- user_set
Type: Reverse
ForeignKey
fromUser
All users of this team (related name of
active_team
)
- users
Type:
ManyToManyField
toUser
Users (related name:
teams
)
- class memopolis.models.User(id, password, last_login, is_superuser, username, first_name, last_name, email, is_staff, is_active, date_joined, language, organization, json, invite_token, active_team)[source]
- Parameters:
id (AutoField) – Primary key: ID
password (CharField) – Password
last_login (DateTimeField) – Last login
is_superuser (BooleanField) – Superuser status. Designates that this user has all permissions without explicitly assigning them.
username (CharField) – Username. Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
first_name (CharField) – First name
last_name (CharField) – Last name
email (EmailField) – Email address
is_staff (BooleanField) – Staff status. Designates whether the user can log into this admin site.
is_active (BooleanField) – Active. Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
date_joined (DateTimeField) – Date joined
language (CharField) – Language
json (JSONField) – Json
invite_token (UUIDField) – Invite token
Relationship fields:
- Parameters:
organization (
ForeignKey
toOrganization
) – Organization (related name:users
)active_team (
ForeignKey
toTeam
) – Active team (related name:user
)groups (
ManyToManyField
toGroup
) – Groups. The groups this user belongs to. A user will get all permissions granted to each of their groups. (related name:user_set
)user_permissions (
ManyToManyField
toPermission
) – User permissions. Specific permissions for this user. (related name:user_set
)
Reverse relationships:
- Parameters:
logentry (Reverse
ForeignKey
fromLogEntry
) – All log entries of this user (related name ofuser
)auth_token_set (Reverse
ForeignKey
fromAuthToken
) – All auth token set of this user (related name ofuser
)admin_organizations (Reverse
ManyToManyField
fromOrganization
) – All admin organizations of this user (related name ofadmins
)admin_teams (Reverse
ManyToManyField
fromTeam
) – All admin teams of this user (related name ofadmins
)teams (Reverse
ManyToManyField
fromTeam
) – All teams of this user (related name ofusers
)files (Reverse
ForeignKey
fromContent
) – All files of this user (related name ofuser
)maps (Reverse
ForeignKey
fromMap
) – All maps of this user (related name ofuser
)feedbackticket (Reverse
ForeignKey
fromFeedbackTicket
) – All feedback tickets of this user (related name ofuser
)
- exception DoesNotExist
- exception MultipleObjectsReturned
- active_team
Type:
ForeignKey
toTeam
Active team (related name:
user
)
- active_team_id
Internal field, use
active_team
instead.
- admin_organizations
Type: Reverse
ManyToManyField
fromOrganization
All admin organizations of this user (related name of
admins
)
- admin_teams
Type: Reverse
ManyToManyField
fromTeam
All admin teams of this user (related name of
admins
)
- auth_token_set
Type: Reverse
ForeignKey
fromAuthToken
All auth token set of this user (related name of
user
)
- date_joined
Type:
DateTimeField
Date joined
- email
Type:
EmailField
Email address
- feedbackticket_set
Type: Reverse
ForeignKey
fromFeedbackTicket
All feedback tickets of this user (related name of
user
)
- files
Type: Reverse
ForeignKey
fromContent
All files of this user (related name of
user
)
- get_language_display(*, field=<django.db.models.CharField: language>)
Shows the label of the
language
. Seeget_FOO_display()
for more information.
- get_next_by_date_joined(*, field=<django.db.models.DateTimeField: date_joined>, is_next=True, **kwargs)
Finds next instance based on
date_joined
. Seeget_next_by_FOO()
for more information.
- get_previous_by_date_joined(*, field=<django.db.models.DateTimeField: date_joined>, is_next=False, **kwargs)
Finds previous instance based on
date_joined
. Seeget_previous_by_FOO()
for more information.
- groups
Type:
ManyToManyField
toGroup
Groups. The groups this user belongs to. A user will get all permissions granted to each of their groups. (related name:
user_set
)
- is_active
Type:
BooleanField
Active. Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
- is_staff
Type:
BooleanField
Staff status. Designates whether the user can log into this admin site.
- is_superuser
Type:
BooleanField
Superuser status. Designates that this user has all permissions without explicitly assigning them.
- last_login
Type:
DateTimeField
Last login
- logentry_set
Type: Reverse
ForeignKey
fromLogEntry
All log entries of this user (related name of
user
)
- maps
Type: Reverse
ForeignKey
fromMap
All maps of this user (related name of
user
)
- organization
Type:
ForeignKey
toOrganization
Organization (related name:
users
)
- organization_id
Internal field, use
organization
instead.
- teams
Type: Reverse
ManyToManyField
fromTeam
All teams of this user (related name of
users
)
- user_permissions
Type:
ManyToManyField
toPermission
User permissions. Specific permissions for this user. (related name:
user_set
)
- class memopolis.models.WorldObject(id, uuid, map, json)[source]
-
Relationship fields:
- Parameters:
map (
ForeignKey
toMap
) – Map (related name:users
)
- exception DoesNotExist
- exception MultipleObjectsReturned
- json
Type:
JSONField
Json
- map
Type:
ForeignKey
toMap
Map (related name:
users
)
- objects = <django.db.models.Manager object>