sources: remove policies as they are not used currently

This commit is contained in:
Jens Langhammer 2020-02-23 14:40:06 +01:00
parent 0f46207ea4
commit fa2870afe0
3 changed files with 2 additions and 9 deletions

View File

@ -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)

View File

@ -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),
} }

View File

@ -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),
} }