oauth2: allow modifications of client_id and client_secret (#22717)

This commit is contained in:
Benjamin Dauvergne 2018-03-22 21:14:24 +01:00
parent c741e8df51
commit e98b74dccc
1 changed files with 0 additions and 1 deletions

View File

@ -22,7 +22,6 @@ from .models import OAuth2Client
class OAuth2ClientAdmin(admin.ModelAdmin):
fields = ('client_name', 'client_id', 'client_secret', 'redirect_uris')
list_display = ['client_name', 'client_id', 'client_secret', 'redirect_uris']
readonly_fields = ['client_id', 'client_secret']
admin.site.register(OAuth2Client, OAuth2ClientAdmin)