Skip to content
Snippets Groups Projects
Commit bff99265 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch 'reformat' into 'master'

Reformat

See merge request !1181
parents 2a6b65f8 eaeccba6
No related branches found
No related tags found
1 merge request!1181Reformat
Pipeline #113165 canceled
......@@ -40,7 +40,7 @@ export default {
this.$i18n.locale = languageOption.code;
this.$vuetify.lang.current = languageOption.code;
},
nameForMenu: function(item) {
nameForMenu: function (item) {
return `${item.nameLocal} (${item.code})`;
},
},
......
......@@ -52,8 +52,7 @@ const menusMixin = {
? this.checkPermission(route.meta.menuPermission)
: route.meta.permission
? this.checkPermission(route.meta.permission)
: true
) &&
: true) &&
(route.meta.validators
? this.checkValidators(route.meta.validators)
: true)
......@@ -81,8 +80,7 @@ const menusMixin = {
? this.checkPermission(route.meta.menuPermission)
: route.meta.permission
? this.checkPermission(route.meta.permission)
: true
) &&
: true) &&
(route.meta.validators
? this.checkValidators(route.meta.validators)
: true)
......
......@@ -126,7 +126,9 @@ class Query(graphene.ObjectType):
allowed_object_ids = get_allowed_object_ids(info.context.user, indexed_models)
if allowed_object_ids:
results = SearchQuerySet().filter(id__in=allowed_object_ids).filter(text=AutoQuery(query))
results = (
SearchQuerySet().filter(id__in=allowed_object_ids).filter(text=AutoQuery(query))
)
if limit < 0:
return results
return results[:limit]
......
......@@ -196,7 +196,6 @@ urlpatterns = [
views.CustomAuthorizationView.as_view(),
name="oauth2_provider:authorize",
),
path("__i18n__/", include("django.conf.urls.i18n")),
path(
"ckeditor/upload/",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment