lms.djangoapps.support package#
Subpackages#
- lms.djangoapps.support.views package
- Submodules
- lms.djangoapps.support.views.certificate module
- lms.djangoapps.support.views.contact_us module
- lms.djangoapps.support.views.course_entitlements module
- lms.djangoapps.support.views.enrollments module
EnrollmentSupportListViewEnrollmentSupportListView.exclude_from_schemaEnrollmentSupportListView.get()EnrollmentSupportListView.get_course_modes()EnrollmentSupportListView.include_order_number()EnrollmentSupportListView.include_verified_mode_info()EnrollmentSupportListView.manual_enrollment_data()EnrollmentSupportListView.patch()EnrollmentSupportListView.post()
EnrollmentSupportView
- lms.djangoapps.support.views.feature_based_enrollments module
- lms.djangoapps.support.views.index module
- lms.djangoapps.support.views.manage_user module
- lms.djangoapps.support.views.onboarding_status module
- lms.djangoapps.support.views.program_enrollments module
- lms.djangoapps.support.views.sso_records module
- lms.djangoapps.support.views.utils module
- Module contents
Submodules#
lms.djangoapps.support.decorators module#
Decorators used by the support app.
- lms.djangoapps.support.decorators.require_support_permission(func)#
View decorator that requires the user to have permission to use the support UI.
lms.djangoapps.support.models module#
Models used to implement support related models in such as SSO History model
- class lms.djangoapps.support.models.HistoricalUserSocialAuth(id, provider, uid, extra_data, created, modified, user, history_id, history_date, history_change_reason, history_type, history_user)#
Bases:
HistoricalChanges,Model- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- created#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- extra_data#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- static get_default_history_user(instance)#
Returns the user specified by get_user method for manually creating historical objects
- get_history_type_display(*, field=<django.db.models.fields.CharField: history_type>)#
- get_next_by_created(*, field=<django.db.models.fields.DateTimeField: created>, is_next=True, **kwargs)#
- get_next_by_history_date(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=True, **kwargs)#
- get_next_by_modified(*, field=<django.db.models.fields.DateTimeField: modified>, is_next=True, **kwargs)#
- get_previous_by_created(*, field=<django.db.models.fields.DateTimeField: created>, is_next=False, **kwargs)#
- get_previous_by_history_date(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=False, **kwargs)#
- get_previous_by_modified(*, field=<django.db.models.fields.DateTimeField: modified>, is_next=False, **kwargs)#
- history_change_reason#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- history_date#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- history_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- history_object#
- history_type#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- history_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.
- history_user_id#
- id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- property instance#
- instance_type#
alias of
UserSocialAuth
- modified#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- property next_record#
Get the next history record for the instance. None if last.
- objects = <django.db.models.manager.Manager object>#
- property prev_record#
Get the previous history record for the instance. None if first.
- provider#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- revert_url()#
URL for this change in the default admin site.
- tracked_fields = [<django.db.models.fields.AutoField: id>, <django.db.models.fields.related.ForeignKey: user>, <django.db.models.fields.CharField: provider>, <django.db.models.fields.CharField: uid>, <social_django.fields.JSONField: extra_data>, <django.db.models.fields.DateTimeField: created>, <django.db.models.fields.DateTimeField: modified>]#
- uid#
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.
- user_id#
lms.djangoapps.support.serializers module#
Serializers for use in the support app.
- class lms.djangoapps.support.serializers.CourseEnrollmentSerializer(*args, **kwargs)#
Bases:
SerializerSerializers a student_courseenrollment model object
- class lms.djangoapps.support.serializers.ManualEnrollmentSerializer(*args, **kwargs)#
Bases:
ModelSerializerSerializes a manual enrollment audit object.
- class lms.djangoapps.support.serializers.ProgramCourseEnrollmentSerializer(*args, **kwargs)#
Bases:
SerializerSerializes a Program Course Enrollment model object
- class Meta#
Bases:
object- model#
alias of
ProgramCourseEnrollment
- get_course_url(obj)#
- class lms.djangoapps.support.serializers.ProgramEnrollmentSerializer(*args, **kwargs)#
Bases:
SerializerSerializes a Program Enrollment Model object
- class Meta#
Bases:
object- model#
alias of
ProgramEnrollment
- get_program_name(obj)#
- lms.djangoapps.support.serializers.serialize_sso_history(user_social_auths_history)#
Serialize history for user social auth model object
- lms.djangoapps.support.serializers.serialize_sso_records(user_social_auth, user_social_auths_history)#
Serialize user social auth model object
- lms.djangoapps.support.serializers.serialize_user_info(user, user_social_auths=None)#
Helper method to serialize resulting in user_info_object based on passed in django models
lms.djangoapps.support.urls module#
URLs for the student support app.