Models¶
-
class
djasana.models.
Attachment
(*args, **kwargs)¶ A remote file.
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
exception
-
class
djasana.models.
BaseModel
(*args, **kwargs)¶ An abstract base class for Asana models.
-
save
(*args, **kwargs)¶ Saves 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.
-
-
class
djasana.models.
CustomField
(*args, **kwargs)¶ Metadata for adding custom data to a task
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
exception
-
class
djasana.models.
CustomFieldSettings
(*args, **kwargs)¶ The relation between a CustomField and a project
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
exception
-
class
djasana.models.
Dependancy
(*args, **kwargs)¶ The ordered dependancy of one task on another
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
exception
-
class
djasana.models.
Hearted
(*args, **kwargs)¶ A record that a user has liked a thing.
-
class
djasana.models.
NamedModel
(*args, **kwargs)¶ An abstract base class for Asana models with names.
-
class
djasana.models.
Project
(*args, **kwargs)¶ An Asana project in a workspace having a collection of tasks.
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
asana_url
()¶ Returns the absolute url for this project at Asana.
-
exception
-
class
djasana.models.
ProjectStatus
(*args, **kwargs)¶ An update on the progess of a project.
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
exception
-
class
djasana.models.
Story
(*args, **kwargs)¶ The log of a change to an Asana object.
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
exception
-
class
djasana.models.
SyncToken
(*args, **kwargs)¶ The most recent sync token received from Asana for the project
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
exception
-
class
djasana.models.
Tag
(*args, **kwargs)¶ A label within a workspace or organiation that can be attached to a task.
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
exception
-
class
djasana.models.
Task
(*args, **kwargs)¶ An Asana task; something that needs doing.
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
add_comment
(text)¶ Adds a comment in Asana for this task.
-
asana_url
(project=None)¶ Returns the absolute url for this task at Asana.
-
delete_from_asana
(*args, **kwargs)¶ Deletes this task from Asana and then deletes this model instance.
-
refresh_from_asana
()¶ Updates this task from Asana.
-
sync_to_asana
(fields=None)¶ Updates Asana to match values from this task.
-
exception
-
class
djasana.models.
Team
(id, remote_id, gid, resource_type, name, organization_id, organization_name, description, html_description)¶ -
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
exception
-
class
djasana.models.
User
(*args, **kwargs)¶ An Asana user.
Note this is not related to a django User (although you can establish a relationship yourself).
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
exception
-
class
djasana.models.
Webhook
(*args, **kwargs)¶ A secret negotiated with Asana for keeping a project synchronized.
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
exception
-
class
djasana.models.
Workspace
(*args, **kwargs)¶ An object for grouping projects
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
exception
-
djasana.models.
get_next_color
()¶ Returns the next color choice.
For assigning to new Asana projects. Cache where we are in the list.