Merge "Application Credentials: Set unrestricted Default to False"
This commit is contained in:
commit
5601ea9477
@ -94,7 +94,7 @@ class CreateApplicationCredentialForm(forms.SelfHandlingForm):
|
||||
secret=data['secret'] or None,
|
||||
expires_at=expiration or None,
|
||||
roles=roles,
|
||||
unrestricted=data['unrestricted'] or None
|
||||
unrestricted=data['unrestricted']
|
||||
)
|
||||
self.request.session['application_credential'] = \
|
||||
new_app_cred.to_dict()
|
||||
|
@ -47,7 +47,7 @@ class ApplicationCredentialViewTests(test.TestCase):
|
||||
'description': new_app_cred.description,
|
||||
'expires_at': new_app_cred.expires_at,
|
||||
'roles': None,
|
||||
'unrestricted': None,
|
||||
'unrestricted': False,
|
||||
'secret': None
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user