Skip to content

Commit

Permalink
Merge pull request #502 from atharvatechnology/dev
Browse files Browse the repository at this point in the history
(hotfix) Exam session decrease query by makeing field readonly, list made status editable
  • Loading branch information
sushilkhadka165 authored May 27, 2024
2 parents 632a574 + 4b0a262 commit a5c93ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion enrollments/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ class ExamThroughEnrollmentInline(admin.TabularInline):

model = ExamThroughEnrollment
extra = 1
readonly_fields = ["status"]
readonly_fields = ["status", "enrollment"]
fields = ("enrollment", "score", "negative_score", "status")


class CourseThroughEnrollmentInline(admin.TabularInline):
Expand Down Expand Up @@ -121,6 +122,7 @@ class ExamSessionAdmin(CreatorBaseModelAdmin, admin.ModelAdmin):
"help_text": "Seconds doesnot matters",
},
}
list_editable = ["status"]
date_hierarchy = "created_at"
readonly_fields = CreatorBaseModelAdmin.readonly_fields + ["end_date"]

Expand Down

0 comments on commit a5c93ab

Please sign in to comment.