Skip to content

Commit

Permalink
fix: pylint quality issues
Browse files Browse the repository at this point in the history
  • Loading branch information
AfaqShuaib09 committed Nov 29, 2024
1 parent d4e5951 commit 63bd27e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion course_discovery/apps/course_metadata/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ class CourseTypeAdmin(admin.ModelAdmin):
search_fields = ['uuid', 'name']
form = CourseTypeAdminForm


@admin.register(CourseRun)
class CourseRunAdmin(SimpleHistoryAdmin):
inlines = (SeatInline,)
Expand Down Expand Up @@ -412,7 +413,7 @@ def get_queryset(self, request):
queryset = super().get_queryset(request)
queryset = queryset.select_related(
'partner',
'type'
'type'
).prefetch_related(
'courses',
'authoring_organizations',
Expand Down Expand Up @@ -548,6 +549,7 @@ class SeatAdmin(SimpleHistoryAdmin):
raw_id_fields = ('draft_version',)
readonly_fields = ('_upgrade_deadline',)


@admin.register(SeatType)
class SeatTypeAdmin(admin.ModelAdmin):
list_display = ('name', 'slug',)
Expand Down Expand Up @@ -1160,6 +1162,7 @@ class RestrictedCourseRunAdmin(admin.ModelAdmin):
def get_queryset(self, request):
return super().get_queryset(request).select_related('course_run__course')


class CourseReviewAdmin(admin.ModelAdmin):
"""
Admin settings for CourseReview model
Expand Down

0 comments on commit 63bd27e

Please sign in to comment.