Skip to content

Commit

Permalink
Update search field in TokenAdmin
Browse files Browse the repository at this point in the history
  • Loading branch information
FeloxleF committed Mar 18, 2024
1 parent 3a42d4d commit 6e2af3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activmindback/core/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from rest_framework.authtoken.models import Token

class TokenAdmin(admin.ModelAdmin):
search_fields = ('email',) # Ajoutez les champs que vous souhaitez utiliser pour la recherche
search_fields = ('token',) # Ajoutez les champs que vous souhaitez utiliser pour la recherche

# Enregistrez le modèle Token avec TokenAdmin
admin.site.register(Token, TokenAdmin)
Expand Down

0 comments on commit 6e2af3e

Please sign in to comment.