core: remove policies from application form
This commit is contained in:
parent
802d568273
commit
db26ce808e
|
@ -1,6 +1,5 @@
|
|||
"""passbook Core Application forms"""
|
||||
from django import forms
|
||||
from django.contrib.admin.widgets import FilteredSelectMultiple
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from passbook.core.models import Application, Provider
|
||||
|
@ -26,14 +25,12 @@ class ApplicationForm(forms.ModelForm):
|
|||
"meta_icon_url",
|
||||
"meta_description",
|
||||
"meta_publisher",
|
||||
"policies",
|
||||
]
|
||||
widgets = {
|
||||
"name": forms.TextInput(),
|
||||
"meta_launch_url": forms.TextInput(),
|
||||
"meta_icon_url": forms.TextInput(),
|
||||
"meta_publisher": forms.TextInput(),
|
||||
"policies": FilteredSelectMultiple(_("policies"), False),
|
||||
}
|
||||
labels = {
|
||||
"meta_launch_url": _("Launch URL"),
|
||||
|
@ -41,4 +38,3 @@ class ApplicationForm(forms.ModelForm):
|
|||
"meta_description": _("Description"),
|
||||
"meta_publisher": _("Publisher"),
|
||||
}
|
||||
help_texts = {"policies": _("Policies required to access this Application.")}
|
||||
|
|
|
@ -13,9 +13,7 @@ class UserLogoutStageView(AuthenticationStage):
|
|||
|
||||
def get(self, request: HttpRequest) -> HttpResponse:
|
||||
LOGGER.debug(
|
||||
"Logged out",
|
||||
user=request.user,
|
||||
flow_slug=self.executor.flow.slug,
|
||||
"Logged out", user=request.user, flow_slug=self.executor.flow.slug,
|
||||
)
|
||||
logout(self.request)
|
||||
return self.executor.stage_ok()
|
||||
|
|
Reference in New Issue