Skip to content

Commit

Permalink
unregister authtoken admin, fixes #876
Browse files Browse the repository at this point in the history
  • Loading branch information
oliche committed Dec 2, 2024
1 parent 755c82e commit b9cbcc9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions alyx/misc/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from django.contrib.postgres.fields import JSONField
from django.utils.html import format_html, format_html_join
from django.utils.safestring import mark_safe
from rest_framework.authtoken.models import TokenProxy

from misc.models import Note, Lab, LabMembership, LabLocation, CageType, \
Enrichment, Food, Housing, HousingSubject
Expand Down Expand Up @@ -276,3 +277,4 @@ def subjects_old(self, obj):
admin.site.register(CageType, CageTypeAdmin)
admin.site.register(Enrichment, EnrichmentAdmin)
admin.site.register(Food, FoodAdmin)
admin.site.unregister(TokenProxy)

0 comments on commit b9cbcc9

Please sign in to comment.