forked from openedx/edx-platform
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: [AXM-33] create enrollments filtering by course completion stat…
…uses
- Loading branch information
1 parent
41b1021
commit a87e8a3
Showing
5 changed files
with
122 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from enum import Enum | ||
from django.utils.functional import classproperty | ||
|
||
|
||
class EnrollmentStatuses(Enum): | ||
""" | ||
""" | ||
|
||
ALL = 'all' | ||
IN_PROGRESS = 'in_progress' | ||
COMPLETED = 'completed' | ||
EXPIRED = 'expired' | ||
|
||
# values = [ALL, IN_PROGRESS, COMPLETED, EXPIRED] | ||
|
||
@classproperty | ||
def values(cls): | ||
return [e.value for e in cls] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters