Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
annagav committed Feb 14, 2024
1 parent 51937fe commit d5247d5
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions courses/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,19 @@ def has_add_permission(self, request):
def has_delete_permission(self, request, obj=None):
return False


class CourseRunEnrollmentAuditInline(admin.TabularInline):
"""Inline editor for CourseRunEnrollmentAudit"""

model = CourseRunEnrollmentAudit
readonly_fields = ["enrollment_id", "created_on", ]
readonly_fields = [
"enrollment_id",
"created_on",
]
min_num = 0
extra = 0


class CourseRunEnrollmentAdmin(AuditableModelAdmin):
"""Admin for CourseRunEnrollment"""

Expand All @@ -221,7 +226,9 @@ class CourseRunEnrollmentAdmin(AuditableModelAdmin):
"user",
"run",
)
inlines = [CourseRunEnrollmentAuditInline,]
inlines = [
CourseRunEnrollmentAuditInline,
]

def get_queryset(self, request):
"""
Expand Down

0 comments on commit d5247d5

Please sign in to comment.