Fix positions CRUD

This commit is contained in:
2022-12-08 07:20:07 +00:00
parent d396abca84
commit 1e85e830b2
2 changed files with 6 additions and 45 deletions

View File

@@ -107,7 +107,6 @@ class ObjectList(RestrictedViewMixin, ObjectNameMixin, ListView):
def get(self, request, *args, **kwargs):
self.request = request
self.object_list = self.get_queryset(**kwargs)
print("OBJ , ", self.object_list)
allow_empty = self.get_allow_empty()
type = kwargs.get("type", None)
@@ -120,7 +119,8 @@ class ObjectList(RestrictedViewMixin, ObjectNameMixin, ListView):
list_url_args = {}
for arg in self.list_url_args:
list_url_args[arg] = locals()[arg]
if arg in locals():
list_url_args[arg] = locals()[arg]
orig_type = type
if type == "page":