enterprise.config package#

Submodules#

enterprise.config.models module#

Module for defining models needed for configuration of internal concerns like management command options and parameters.

class enterprise.config.models.UpdateRoleAssignmentsWithCustomersConfig(*args, **kwargs)#

Bases: ConfigurationModel

Model that specifies parameters for the update_role_assignments_with_customers management command.

exception DoesNotExist#

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned#

Bases: MultipleObjectsReturned

ROLE_CHOICES = [('enterprise_admin', 'enterprise_admin'), ('enterprise_learner', 'enterprise_learner'), ('enterprise_catalog_admin', 'enterprise_catalog_admin'), ('enterprise_openedx_operator', 'enterprise_openedx_operator')]#
batch_size#

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

change_date#

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

changed_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.parent is a ForwardManyToOneDescriptor instance.

changed_by_id#
dry_run#

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

enabled#

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

enterprise_customer_uuid#

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_change_date(*, field=<django.db.models.fields.DateTimeField: change_date>, is_next=True, **kwargs)#
get_previous_by_change_date(*, field=<django.db.models.fields.DateTimeField: change_date>, is_next=False, **kwargs)#
get_role_display(*, field=<django.db.models.fields.CharField: role>)#
id#

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

role#

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

Module contents#