Fix positions CRUD
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user