Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Added an ApiKeyInline class to be able to easily add it to a custom U…

…serAdmin, e.g.:

    from django.contrib.auth.models import User
    from django.contrib.auth.admin import UserAdmin

    from tastypie.admin import ApiKeyInline

    class MyUserAdmin(UserAdmin):
        inlines = [ApiKeyInline], MyUserAdmin)
  • Loading branch information...
commit b9041bda0e408cd1aebe27957d31e1a642a259f3 1 parent fbb675d
@jezdez jezdez authored codysoyland committed
Showing with 9 additions and 0 deletions.
  1. +9 −0 tastypie/
9 tastypie/
@@ -0,0 +1,9 @@
+from django.contrib import admin
+if 'django.contrib.auth' in settings.INSTALLED_APPS:
+ from tastypie.models import ApiKey
+ class ApiKeyInline(admin.StackedInline):
+ model = ApiKey
+ extra = 0
Please sign in to comment.
Something went wrong with that request. Please try again.