Merge pull request #13936 from edx/clintonb/verification-admin-update

Updated SoftwareSecurePhotoVerificationAdmin to use raw ID for id_copy_id_photo_from field
This commit is contained in:
Clinton Blackburn
2016-11-08 12:33:38 -05:00
committed by GitHub

View File

@@ -17,11 +17,9 @@ class SoftwareSecurePhotoVerificationAdmin(admin.ModelAdmin):
"""
Admin for the SoftwareSecurePhotoVerification table.
"""
list_display = ('id', 'user', 'status', 'receipt_id', 'submitted_at', 'updated_at')
raw_id_fields = ('user', 'reviewing_user')
search_fields = (
'receipt_id', 'user__username'
)
list_display = ('id', 'user', 'status', 'receipt_id', 'submitted_at', 'updated_at',)
raw_id_fields = ('user', 'reviewing_user', 'id_copy_id_photo_from',)
search_fields = ('receipt_id', 'user__username',)
class VerificationStatusAdmin(admin.ModelAdmin):