File tree Expand file tree Collapse file tree 1 file changed +1
-25
lines changed
lms/djangoapps/instructor/views Expand file tree Collapse file tree 1 file changed +1
-25
lines changed Original file line number Diff line number Diff line change 2828from lms .djangoapps .discussion .django_comment_client .utils import has_forum_access
2929from lms .djangoapps .instructor import permissions
3030from lms .djangoapps .instructor .views .instructor_dashboard import get_analytics_dashboard_message
31+ from openedx .core .djangoapps .course_groups .rest_api .serializers import GroupSerializer
3132from openedx .core .djangoapps .django_comment_common .models import FORUM_ROLE_ADMINISTRATOR
3233from xmodule .modulestore .django import modulestore
3334
@@ -477,31 +478,6 @@ class ORASummarySerializer(serializers.Serializer):
477478 final_grade_received = serializers .IntegerField ()
478479
479480
480- class GroupSerializer (serializers .Serializer ):
481- """
482- Serializer for a single group within a content group configuration.
483-
484- Groups represent cohorts that can be assigned different course content.
485- """
486-
487- id = serializers .IntegerField (
488- help_text = "Unique identifier for this group within the configuration"
489- )
490- name = serializers .CharField (
491- max_length = 255 ,
492- help_text = "Human-readable name of the group"
493- )
494- version = serializers .IntegerField (
495- help_text = "Group version number (always 1 for current Group format)"
496- )
497- usage = serializers .ListField (
498- child = serializers .DictField (),
499- required = False ,
500- default = list ,
501- help_text = "List of course units using this group for content restriction"
502- )
503-
504-
505481class ContentGroupConfigurationSerializer (serializers .Serializer ):
506482 """
507483 Serializer for a content group configuration (UserPartition with scheme='cohort').
You can’t perform that action at this time.
0 commit comments