@@ -718,7 +718,7 @@ def _get_courses_queryset(
718718 scope_id = Cast ("id" , output_field = CharField (db_collation = "utf8mb4_unicode_ci" )),
719719 display_name_col = Cast ("display_name" , output_field = CharField (db_collation = "utf8mb4_unicode_ci" )),
720720 org_name = Cast ("org" , output_field = CharField (db_collation = "utf8mb4_unicode_ci" )),
721- scope_type = Value ("course" , output_field = CharField (db_collation = "utf8mb4_unicode_ci" )),
721+ scope_type = Value (ScopesTypeField . COURSE , output_field = CharField (db_collation = "utf8mb4_unicode_ci" )),
722722 ).values (
723723 ScopesQuerySetFields .SCOPE_ID ,
724724 ScopesQuerySetFields .DISPLAY_NAME_COL ,
@@ -760,7 +760,7 @@ def _get_libraries_queryset(
760760 scope_id = Cast ("slug" , output_field = CharField (db_collation = "utf8mb4_unicode_ci" )),
761761 display_name_col = Cast ("learning_package__title" , output_field = CharField (db_collation = "utf8mb4_unicode_ci" )),
762762 org_name = Cast ("org__short_name" , output_field = CharField (db_collation = "utf8mb4_unicode_ci" )),
763- scope_type = Value ("library" , output_field = CharField (db_collation = "utf8mb4_unicode_ci" )),
763+ scope_type = Value (ScopesTypeField . LIBRARY , output_field = CharField (db_collation = "utf8mb4_unicode_ci" )),
764764 ).values (
765765 ScopesQuerySetFields .SCOPE_ID ,
766766 ScopesQuerySetFields .DISPLAY_NAME_COL ,
0 commit comments