This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2018-11-22 12:12:24 +00:00
|
|
|
"""passbook oauth_client forms"""
|
|
|
|
|
|
|
|
from django import forms
|
|
|
|
|
2018-11-26 17:22:38 +00:00
|
|
|
from passbook.admin.forms.source import SOURCE_FORM_FIELDS
|
2018-11-22 12:12:24 +00:00
|
|
|
from passbook.oauth_client.models import OAuthSource
|
|
|
|
|
|
|
|
|
|
|
|
class OAuthSourceForm(forms.ModelForm):
|
|
|
|
"""OAuthSource Form"""
|
|
|
|
|
|
|
|
class Meta:
|
|
|
|
|
|
|
|
model = OAuthSource
|
2018-11-26 17:22:38 +00:00
|
|
|
fields = SOURCE_FORM_FIELDS + ['provider_type', 'request_token_url', 'authorization_url',
|
|
|
|
'access_token_url', 'profile_url', 'consumer_key',
|
|
|
|
'consumer_secret']
|