Skip to content

Commit

Permalink
Merge pull request #4150 from kobotoolbox/4142-fix-admin-mfa-list-wit…
Browse files Browse the repository at this point in the history
…h-large-dbs

Fix timeout when superusers try to open MFA user's details Admin UI
  • Loading branch information
jnm authored Nov 21, 2022
2 parents 47a148e + 99b6793 commit c3ba93d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kobo/apps/mfa/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,8 @@ def delete(self, using=None, keep_parents=False):

class MfaMethodAdmin(TrenchMFAMethodAdmin):

search_fields = ['user__username']
search_fields = ('user__username',)
autocomplete_fields = ['user']

def has_add_permission(self, request, obj=None):
return False

0 comments on commit c3ba93d

Please sign in to comment.