Edit README.
This commit is contained in:
parent
f10d307fa4
commit
05a53a6ee2
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ Then let's create a Client. Start django shell: ``python manage.py shell``.
|
|||
.. code:: python
|
||||
|
||||
>>> from openid_provider.models import Client
|
||||
>>> c = Client(name='Some Client', client_id='123', client_secret='456', client_type='public', grant_type='authorization_code', response_type='code', redirect_uris=['http://example.com/'])
|
||||
>>> c = Client(name='Some Client', client_id='123', client_secret='456', client_type='public', response_type='code', redirect_uris=['http://example.com/'])
|
||||
>>> from django.contrib.auth.models import User
|
||||
>>> c.user = User.objects.all()[0]
|
||||
>>> c.save()
|
||||
|
|
Loading…
Reference in a new issue