fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Preparing for Django 1.10
[wolnelektury.git]
/
src
/
api
/
piston
/
admin.py
diff --git
a/src/api/piston/admin.py
b/src/api/piston/admin.py
index
792f196
..
c931db0
100644
(file)
--- a/
src/api/piston/admin.py
+++ b/
src/api/piston/admin.py
@@
-2,6
+2,10
@@
from django.contrib import admin
from . import models
+class TokenAdmin(admin.ModelAdmin):
+ raw_id_fields = ['user']
+
+
admin.site.register(models.Nonce)
admin.site.register(models.Consumer)
-admin.site.register(models.Token)
+admin.site.register(models.Token
, TokenAdmin
)