Skip to content

Commit

Permalink
Merge pull request openedx#35530 from openedx/varshamenon4/feat-djang…
Browse files Browse the repository at this point in the history
…o-admin-verification-attempt

feat: add verification attempt to django admin
  • Loading branch information
varshamenon4 authored Sep 24, 2024
2 parents 47021e9 + cd503d5 commit 75d111a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions lms/djangoapps/verify_student/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
Admin site configurations for verify_student.
"""


from django.contrib import admin

from lms.djangoapps.verify_student.models import (
ManualVerification,
SoftwareSecurePhotoVerification,
SSOVerification,
SSPVerificationRetryConfig
SSPVerificationRetryConfig,
VerificationAttempt
)


Expand Down Expand Up @@ -50,3 +50,13 @@ class SSPVerificationRetryAdmin(admin.ModelAdmin):
Admin for the SSPVerificationRetryConfig table.
"""
pass # lint-amnesty, pylint: disable=unnecessary-pass


@admin.register(VerificationAttempt)
class VerificationAttemptAdmin(admin.ModelAdmin):
"""
Admin for the VerificationAttempt table.
"""
list_display = ('id', 'user', 'name', 'status', 'expiration_datetime',)
raw_id_fields = ('user',)
search_fields = ('user__username', 'name',)

0 comments on commit 75d111a

Please sign in to comment.