Skip to content

Commit 5616ac8

Browse files
fix: remove duplicate serializer
1 parent f1ce202 commit 5616ac8

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

lms/djangoapps/instructor/views/serializers_v2.py

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
from lms.djangoapps.discussion.django_comment_client.utils import has_forum_access
2929
from lms.djangoapps.instructor import permissions
3030
from lms.djangoapps.instructor.views.instructor_dashboard import get_analytics_dashboard_message
31+
from openedx.core.djangoapps.course_groups.rest_api.serializers import GroupSerializer
3132
from openedx.core.djangoapps.django_comment_common.models import FORUM_ROLE_ADMINISTRATOR
3233
from 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-
505481
class ContentGroupConfigurationSerializer(serializers.Serializer):
506482
"""
507483
Serializer for a content group configuration (UserPartition with scheme='cohort').

0 commit comments

Comments
 (0)