From c20856ca175cb6bb1f4e5419aa8a7315286b7f4e Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 27 Feb 2021 17:26:20 +0100 Subject: [PATCH] web: fix colourstyles not being included in common_styles # Conflicts: # authentik/events/geo.py # web/src/elements/buttons/TokenCopyButton.ts --- authentik/policies/forms.py | 4 ---- web/src/constants.ts | 2 -- 2 files changed, 6 deletions(-) diff --git a/authentik/policies/forms.py b/authentik/policies/forms.py index f4c4eeddb..b737ec817 100644 --- a/authentik/policies/forms.py +++ b/authentik/policies/forms.py @@ -2,7 +2,6 @@ from django import forms -from authentik.core.models import Group from authentik.lib.widgets import GroupedModelChoiceField from authentik.policies.models import Policy, PolicyBinding, PolicyBindingModel @@ -20,9 +19,6 @@ class PolicyBindingForm(forms.ModelForm): policy = GroupedModelChoiceField( queryset=Policy.objects.all().select_subclasses(), ) - group = forms.ModelChoiceField( - queryset=Group.objects.all().order_by("name"), required=False - ) def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) diff --git a/web/src/constants.ts b/web/src/constants.ts index f91ede3be..9079f262a 100644 --- a/web/src/constants.ts +++ b/web/src/constants.ts @@ -1,5 +1,3 @@ -import { css } from "lit-element"; - export const PRIMARY_CLASS = "pf-m-primary"; export const SUCCESS_CLASS = "pf-m-success"; export const ERROR_CLASS = "pf-m-danger";