Commits

David Larlet  committed eee24ee

As suggested by @toastdriven, specifying raw_id_fields in admin is better for performances

  • Participants
  • Parent commits 5e80d27

Comments (0)

Files changed (1)

File oauth_provider/admin.py

 	pass
 	
 class ConsumerAdmin(admin.ModelAdmin):
-	pass
+	raw_id_fields = ['user',]
 
 class TokenAdmin(admin.ModelAdmin):
-	pass
+	raw_id_fields = ['user', 'consumer', 'resource']
 	
 
 admin.site.register(Resource, ResourceAdmin)