shuup.tasks package¶
Subpackages¶
Submodules¶
shuup.tasks.apps module¶
shuup.tasks.models module¶
-
class
shuup.tasks.models.TaskStatus[source]¶ Bases:
enumfields.enums.EnumAn enumeration.
-
NEW= 1¶
-
IN_PROGRESS= 2¶
-
COMPLETED= 3¶
-
DELETED= 4¶
-
-
class
shuup.tasks.models.TaskCommentVisibility[source]¶ Bases:
enumfields.enums.EnumAn enumeration.
-
PUBLIC= 1¶
-
STAFF_ONLY= 2¶
-
ADMINS_ONLY= 3¶
-
-
class
shuup.tasks.models.TaskType(id, identifier, shop)[source]¶ Bases:
parler.models.TranslatableModelParameters: - id (AutoField) – Id
- identifier (InternalIdentifierField) – Do not change this value if you are not sure what you are doing.
- shop (ForeignKey to
shuup.core.models.Shop) – Shop - name (TextField) – (Translatable) Name
-
translations¶ ManyToOneRel to
shuup.tasks.models.TaskTypeTranslation
-
tasks¶ ManyToOneRel to
shuup.tasks.models.Task
-
identifier¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
shop¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
translations Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
-
exception
DoesNotExist¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
name¶ Descriptor for translated attributes.
This attribute proxies all get/set calls to the translated model.
-
shop_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
tasks Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
-
class
shuup.tasks.models.TaskQuerySet(model=None, query=None, using=None, hints=None)[source]¶ Bases:
django.db.models.query.QuerySet
-
class
shuup.tasks.models.Task(id, shop, name, type, status, priority, creator, assigned_to, completed_by, completed_on, created_on, modified_on)[source]¶ Bases:
django.db.models.base.ModelParameters: - id (AutoField) – Id
- shop (ForeignKey to
shuup.core.models.Shop) – Shop - name (CharField) – Name
- type (ForeignKey to
shuup.tasks.models.TaskType) – Task type - status (EnumIntegerField) – Status
- priority (PositiveIntegerField) – Priority
- creator (ForeignKey to
shuup.core.models.Contact) – Creator - assigned_to (ForeignKey to
shuup.core.models.Contact) – Assigned to - completed_by (ForeignKey to
shuup.core.models.Contact) – Completed by - completed_on (DateTimeField) – Completed on
- created_on (DateTimeField) – Created on
- modified_on (DateTimeField) – Modified on
-
comments¶ ManyToOneRel to
shuup.tasks.models.TaskComment
-
log_entries¶ ManyToOneRel to
shuup.tasks.models.TaskLogEntry
-
shop¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
name¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
type¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
status¶ A property descriptor which ensures that
field.to_python()is called on _every_ assignment to the field.This used to be provided by the
django.db.models.subclassing.Creatorclass, which in turn was used by the deprecated-in-Django-1.10SubfieldBaseclass, hence the reimplementation here.
-
priority¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
creator¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
assigned_to¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
completed_by¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
completed_on¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
created_on¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
modified_on¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
objects= <django.db.models.manager.ManagerFromTaskQuerySet object>¶
-
exception
DoesNotExist¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
add_log_entry(message, identifier=None, kind=<LogEntryKind.OTHER: 0>, user=None, extra=None, save=True)¶
-
assigned_to_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
comments Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
-
completed_by_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
creator_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
get_next_by_created_on(*, field=<django.db.models.fields.DateTimeField: created_on>, is_next=True, **kwargs)¶
-
get_next_by_modified_on(*, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=True, **kwargs)¶
-
get_previous_by_created_on(*, field=<django.db.models.fields.DateTimeField: created_on>, is_next=False, **kwargs)¶
-
get_previous_by_modified_on(*, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=False, **kwargs)¶
-
get_status_display(*, field=<enumfields.fields.EnumIntegerField: status>)¶
-
id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
log_entries Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
-
shop_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
type_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
class
shuup.tasks.models.TaskCommentQuerySet(model=None, query=None, using=None, hints=None)[source]¶ Bases:
django.db.models.query.QuerySet
-
class
shuup.tasks.models.TaskComment(id, task, author, visibility, body, created_on, modified_on)[source]¶ Bases:
django.db.models.base.ModelParameters: - id (AutoField) – Id
- task (ForeignKey to
shuup.tasks.models.Task) – Task - author (ForeignKey to
shuup.core.models.Contact) – Author - visibility (EnumIntegerField) – Visibility
- body (TextField) – Body
- created_on (DateTimeField) – Created on
- modified_on (DateTimeField) – Modified on
-
task¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
visibility¶ A property descriptor which ensures that
field.to_python()is called on _every_ assignment to the field.This used to be provided by the
django.db.models.subclassing.Creatorclass, which in turn was used by the deprecated-in-Django-1.10SubfieldBaseclass, hence the reimplementation here.
-
body¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
created_on¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
modified_on¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
objects= <django.db.models.manager.ManagerFromTaskCommentQuerySet object>¶
-
exception
DoesNotExist¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned¶ Bases:
django.core.exceptions.MultipleObjectsReturned
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
get_next_by_created_on(*, field=<django.db.models.fields.DateTimeField: created_on>, is_next=True, **kwargs)¶
-
get_next_by_modified_on(*, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=True, **kwargs)¶
-
get_previous_by_created_on(*, field=<django.db.models.fields.DateTimeField: created_on>, is_next=False, **kwargs)¶
-
get_previous_by_modified_on(*, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=False, **kwargs)¶
-
get_visibility_display(*, field=<enumfields.fields.EnumIntegerField: visibility>)¶
-
id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
task_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
class
shuup.tasks.models.TaskLogEntry(id, created_on, user, message, identifier, kind, extra, target)¶ Bases:
shuup.utils.analog.BaseLogEntryParameters: - id (AutoField) – Id
- created_on (DateTimeField) – Created on
- user (ForeignKey to
django.contrib.auth.models.User) – User - message (CharField) – Message
- identifier (CharField) – Identifier
- kind (EnumIntegerField) – Log entry kind
- extra (JSONField) – Extra data
- target (ForeignKey to
shuup.tasks.models.Task) – Target
-
exception
DoesNotExist¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
extra¶ A placeholder class that provides a way to set the attribute on the model.
-
get_next_by_created_on(*, field=<django.db.models.fields.DateTimeField: created_on>, is_next=True, **kwargs)¶
-
get_previous_by_created_on(*, field=<django.db.models.fields.DateTimeField: created_on>, is_next=False, **kwargs)¶
-
id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
kind¶ A property descriptor which ensures that
field.to_python()is called on _every_ assignment to the field.This used to be provided by the
django.db.models.subclassing.Creatorclass, which in turn was used by the deprecated-in-Django-1.10SubfieldBaseclass, hence the reimplementation here.
-
objects= <django.db.models.manager.Manager object>¶
-
target¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
target_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
user¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
class
shuup.tasks.models.TaskTypeTranslation(id, language_code, name, master)¶ Bases:
parler.models.TranslatedFieldsModelParameters: - id (AutoField) – Id
- language_code (HideChoicesCharField) – Language
- name (TextField) – Name
- master (TranslationsForeignKey to
shuup.tasks.models.TaskType) – Master
-
exception
DoesNotExist¶ Bases:
parler.models.TranslationDoesNotExist,shuup.tasks.models.DoesNotExist,shuup.tasks.models.DoesNotExist
-
exception
MultipleObjectsReturned¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
master¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
master_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
name¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
objects= <django.db.models.manager.Manager object>¶