* feat: [AXM-24] Update structure for course enrollments API (#2515) --------- Co-authored-by: Glib Glugovskiy <glib.glugovskiy@raccoongang.com> * feat: [AXM-53] add assertions for primary course (#2522) --------- Co-authored-by: monteri <36768631+monteri@users.noreply.github.com> * feat: [AXM-297] Add progress to assignments in BlocksInfoInCourseView API (#2546) --------- Co-authored-by: NiedielnitsevIvan <81557788+NiedielnitsevIvan@users.noreply.github.com> Co-authored-by: Glib Glugovskiy <glib.glugovskiy@raccoongang.com> Co-authored-by: monteri <36768631+monteri@users.noreply.github.com>
23 lines
406 B
Python
23 lines
406 B
Python
"""
|
|
Enums for mobile_api users app.
|
|
"""
|
|
from enum import Enum
|
|
|
|
|
|
class EnrollmentStatuses(Enum):
|
|
"""
|
|
Enum for enrollment statuses.
|
|
"""
|
|
|
|
ALL = 'all'
|
|
IN_PROGRESS = 'in_progress'
|
|
COMPLETED = 'completed'
|
|
EXPIRED = 'expired'
|
|
|
|
@classmethod
|
|
def values(cls):
|
|
"""
|
|
Returns string representation of all enum values.
|
|
"""
|
|
return [e.value for e in cls]
|