Models#
Database models for Open edX Auto Enroll.
- class openedx_auto_enroll.models.AutoEnrollConfiguration(*args, **kwargs)#
Global configuration for automatic enrollment.
- exception DoesNotExist#
- exception MultipleObjectsReturned#
- created_at#
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.
- get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)#
- get_next_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=True, **kwargs)#
- get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)#
- get_previous_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, 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.
- classmethod is_enabled()#
Return whether auto-enrollment is globally enabled.
- objects = <django.db.models.manager.Manager object>#
- singleton_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- updated_at#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class openedx_auto_enroll.models.AutoEnrollCourse(*args, **kwargs)#
A course that newly registered users should be enrolled in.
- AUDIT = 'audit'#
- exception DoesNotExist#
- ENROLLMENT_MODE_CHOICES = (('audit', 'Audit'), ('honor', 'Honor'), ('verified', 'Verified'))#
- HONOR = 'honor'#
- exception MultipleObjectsReturned#
- VERIFIED = 'verified'#
- course_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- created_at#
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.
- classmethod enabled_courses()#
Return enabled course rows for automatic enrollment.
- enrollment_mode#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- get_enrollment_mode_display(*, field=<django.db.models.fields.CharField: enrollment_mode>)#
- get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)#
- get_next_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=True, **kwargs)#
- get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)#
- get_previous_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, 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.
- objects = <django.db.models.manager.Manager object>#
- updated_at#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.