sources: remove policies as they are not used currently
This commit is contained in:
parent
0f46207ea4
commit
fa2870afe0
|
@ -1,7 +1,4 @@
|
||||||
"""passbook core source form fields"""
|
"""passbook core source form fields"""
|
||||||
# from django import forms
|
|
||||||
|
|
||||||
SOURCE_FORM_FIELDS = ["name", "slug", "enabled", "policies"]
|
SOURCE_FORM_FIELDS = ["name", "slug", "enabled"]
|
||||||
SOURCE_SERIALIZER_FIELDS = ["pk", "name", "slug", "enabled", "policies"]
|
SOURCE_SERIALIZER_FIELDS = ["pk", "name", "slug", "enabled"]
|
||||||
|
|
||||||
# class SourceForm(forms.Form)
|
|
||||||
|
|
|
@ -42,7 +42,6 @@ class LDAPSourceForm(forms.ModelForm):
|
||||||
"group_object_filter": forms.TextInput(),
|
"group_object_filter": forms.TextInput(),
|
||||||
"user_group_membership_field": forms.TextInput(),
|
"user_group_membership_field": forms.TextInput(),
|
||||||
"object_uniqueness_field": forms.TextInput(),
|
"object_uniqueness_field": forms.TextInput(),
|
||||||
"policies": FilteredSelectMultiple(_("policies"), False),
|
|
||||||
"property_mappings": FilteredSelectMultiple(_("Property Mappings"), False),
|
"property_mappings": FilteredSelectMultiple(_("Property Mappings"), False),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
"""passbook oauth_client forms"""
|
"""passbook oauth_client forms"""
|
||||||
|
|
||||||
from django import forms
|
from django import forms
|
||||||
from django.contrib.admin.widgets import FilteredSelectMultiple
|
|
||||||
from django.utils.translation import gettext as _
|
|
||||||
|
|
||||||
from passbook.admin.forms.source import SOURCE_FORM_FIELDS
|
from passbook.admin.forms.source import SOURCE_FORM_FIELDS
|
||||||
from passbook.sources.oauth.models import OAuthSource
|
from passbook.sources.oauth.models import OAuthSource
|
||||||
|
@ -36,7 +34,6 @@ class OAuthSourceForm(forms.ModelForm):
|
||||||
"consumer_key": forms.TextInput(),
|
"consumer_key": forms.TextInput(),
|
||||||
"consumer_secret": forms.TextInput(),
|
"consumer_secret": forms.TextInput(),
|
||||||
"provider_type": forms.Select(choices=MANAGER.get_name_tuple()),
|
"provider_type": forms.Select(choices=MANAGER.get_name_tuple()),
|
||||||
"policies": FilteredSelectMultiple(_("policies"), False),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in New Issue