admin: fix linting

This commit is contained in:
Jens Langhammer
2020-05-20 13:59:56 +02:00
parent c329a724e8
commit cafe2f1e1f
9 changed files with 58 additions and 36 deletions

View File

@ -29,9 +29,7 @@ class PolicyListView(LoginRequiredMixin, PermissionListMixin, ListView):
template_name = "administration/policy/list.html"
def get_context_data(self, **kwargs):
kwargs["types"] = {
x.__name__: x for x in all_subclasses(Policy)
}
kwargs["types"] = {x.__name__: x for x in all_subclasses(Policy)}
return super().get_context_data(**kwargs)
def get_queryset(self):

View File

@ -26,9 +26,7 @@ class PropertyMappingListView(LoginRequiredMixin, PermissionListMixin, ListView)
paginate_by = 40
def get_context_data(self, **kwargs):
kwargs["types"] = {
x.__name__: x for x in all_subclasses(PropertyMapping)
}
kwargs["types"] = {x.__name__: x for x in all_subclasses(PropertyMapping)}
return super().get_context_data(**kwargs)
def get_queryset(self):

View File

@ -26,9 +26,7 @@ class ProviderListView(LoginRequiredMixin, PermissionListMixin, ListView):
ordering = "id"
def get_context_data(self, **kwargs):
kwargs["types"] = {
x.__name__: x for x in all_subclasses(Provider)
}
kwargs["types"] = {x.__name__: x for x in all_subclasses(Provider)}
return super().get_context_data(**kwargs)
def get_queryset(self):

View File

@ -26,9 +26,7 @@ class SourceListView(LoginRequiredMixin, PermissionListMixin, ListView):
template_name = "administration/source/list.html"
def get_context_data(self, **kwargs):
kwargs["types"] = {
x.__name__: x for x in all_subclasses(Source)
}
kwargs["types"] = {x.__name__: x for x in all_subclasses(Source)}
return super().get_context_data(**kwargs)
def get_queryset(self):

View File

@ -26,9 +26,7 @@ class StageListView(LoginRequiredMixin, PermissionListMixin, ListView):
paginate_by = 40
def get_context_data(self, **kwargs):
kwargs["types"] = {
x.__name__: x for x in all_subclasses(Stage)
}
kwargs["types"] = {x.__name__: x for x in all_subclasses(Stage)}
return super().get_context_data(**kwargs)
def get_queryset(self):