Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
#212 Relocate token auth admin monkey-patch to ICEkit API app
Browse files Browse the repository at this point in the history
  • Loading branch information
jmurty committed Apr 7, 2017
1 parent 6f647ce commit 2626682
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 0 additions & 6 deletions icekit/admin.py
Expand Up @@ -154,12 +154,6 @@ class ICEkitInlineAdmin(BetterDateTimeAdmin):
admin.site.register(models.MediaCategory, MediaCategoryAdmin)


# Token admin for Django REST framework's `TokenAuthentication`, see
# http://www.django-rest-framework.org/api-guide/authentication/#with-django-admin
from rest_framework.authtoken.admin import TokenAdmin
TokenAdmin.raw_id_fields = ('user',)


# Classes that used to be here

from icekit.admin_tools.filters import \
Expand Down
4 changes: 4 additions & 0 deletions icekit/api/admin.py
@@ -0,0 +1,4 @@
# Token admin for Django REST framework's `TokenAuthentication`, see
# http://www.django-rest-framework.org/api-guide/authentication/#with-django-admin
from rest_framework.authtoken.admin import TokenAdmin
TokenAdmin.raw_id_fields = ('user',)

0 comments on commit 2626682

Please sign in to comment.