diff --git a/passbook/admin/forms/source.py b/passbook/admin/forms/source.py index d174e58e5..b18d7157a 100644 --- a/passbook/admin/forms/source.py +++ b/passbook/admin/forms/source.py @@ -1,7 +1,4 @@ """passbook core source form fields""" -# from django import forms -SOURCE_FORM_FIELDS = ["name", "slug", "enabled", "policies"] -SOURCE_SERIALIZER_FIELDS = ["pk", "name", "slug", "enabled", "policies"] - -# class SourceForm(forms.Form) +SOURCE_FORM_FIELDS = ["name", "slug", "enabled"] +SOURCE_SERIALIZER_FIELDS = ["pk", "name", "slug", "enabled"] diff --git a/passbook/sources/ldap/forms.py b/passbook/sources/ldap/forms.py index 76e616f0f..249ebd5af 100644 --- a/passbook/sources/ldap/forms.py +++ b/passbook/sources/ldap/forms.py @@ -42,7 +42,6 @@ class LDAPSourceForm(forms.ModelForm): "group_object_filter": forms.TextInput(), "user_group_membership_field": forms.TextInput(), "object_uniqueness_field": forms.TextInput(), - "policies": FilteredSelectMultiple(_("policies"), False), "property_mappings": FilteredSelectMultiple(_("Property Mappings"), False), } diff --git a/passbook/sources/oauth/forms.py b/passbook/sources/oauth/forms.py index 78c187122..dea11724b 100644 --- a/passbook/sources/oauth/forms.py +++ b/passbook/sources/oauth/forms.py @@ -1,8 +1,6 @@ """passbook oauth_client 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.sources.oauth.models import OAuthSource @@ -36,7 +34,6 @@ class OAuthSourceForm(forms.ModelForm): "consumer_key": forms.TextInput(), "consumer_secret": forms.TextInput(), "provider_type": forms.Select(choices=MANAGER.get_name_tuple()), - "policies": FilteredSelectMultiple(_("policies"), False), }