Fix URL lookup
This commit is contained in:
parent
16f79b2fed
commit
b4d81c3f51
1 changed files with 6 additions and 6 deletions
|
@ -11,11 +11,11 @@ class VesselsDataTableURLView(LoginRequiredMixin, View):
|
||||||
|
|
||||||
class VesselsEditURLView(LoginRequiredMixin, View):
|
class VesselsEditURLView(LoginRequiredMixin, View):
|
||||||
def get(self, request, *args, **kwargs):
|
def get(self, request, *args, **kwargs):
|
||||||
return JsonResponse(reverse_lazy("core:admin_vessels_edit", kwargs["id"]), safe=False)
|
return JsonResponse(reverse_lazy("core:admin_vessels_edit", kwargs=kwargs), safe=False)
|
||||||
|
|
||||||
class VesselsDeleteURLView(LoginRequiredMixin, View):
|
class VesselsDeleteURLView(LoginRequiredMixin, View):
|
||||||
def get(self, request, *args, **kwargs):
|
def get(self, request, *args, **kwargs):
|
||||||
return JsonResponse(reverse_lazy("core:admin_vessels_delete", kwargs["id"]), safe=False)
|
return JsonResponse(reverse_lazy("core:admin_vessels_delete", kwargs=kwargs), safe=False)
|
||||||
|
|
||||||
class ReplicationSourcesDataTableURLView(LoginRequiredMixin, View):
|
class ReplicationSourcesDataTableURLView(LoginRequiredMixin, View):
|
||||||
def get(self, request, *args, **kwargs):
|
def get(self, request, *args, **kwargs):
|
||||||
|
@ -23,11 +23,11 @@ class ReplicationSourcesDataTableURLView(LoginRequiredMixin, View):
|
||||||
|
|
||||||
class ReplicationSourcesEditURLView(LoginRequiredMixin, View):
|
class ReplicationSourcesEditURLView(LoginRequiredMixin, View):
|
||||||
def get(self, request, *args, **kwargs):
|
def get(self, request, *args, **kwargs):
|
||||||
return JsonResponse(reverse_lazy("core:admin_replication_sources_edit", kwargs["id"]), safe=False)
|
return JsonResponse(reverse_lazy("core:admin_replication_sources_edit", kwargs=kwargs), safe=False)
|
||||||
|
|
||||||
class ReplicationSourcesDeleteURLView(LoginRequiredMixin, View):
|
class ReplicationSourcesDeleteURLView(LoginRequiredMixin, View):
|
||||||
def get(self, request, *args, **kwargs):
|
def get(self, request, *args, **kwargs):
|
||||||
return JsonResponse(reverse_lazy("core:admin_replication_sources_delete", kwargs["id"]), safe=False)
|
return JsonResponse(reverse_lazy("core:admin_replication_sources_delete", kwargs=kwargs), safe=False)
|
||||||
|
|
||||||
class ReplicationTargetsDataTableURLView(LoginRequiredMixin, View):
|
class ReplicationTargetsDataTableURLView(LoginRequiredMixin, View):
|
||||||
def get(self, request, *args, **kwargs):
|
def get(self, request, *args, **kwargs):
|
||||||
|
@ -35,11 +35,11 @@ class ReplicationTargetsDataTableURLView(LoginRequiredMixin, View):
|
||||||
|
|
||||||
class ReplicationTargetsEditURLView(LoginRequiredMixin, View):
|
class ReplicationTargetsEditURLView(LoginRequiredMixin, View):
|
||||||
def get(self, request, *args, **kwargs):
|
def get(self, request, *args, **kwargs):
|
||||||
return JsonResponse(reverse_lazy("core:admin_replication_targets_edit", kwargs["id"]), safe=False)
|
return JsonResponse(reverse_lazy("core:admin_replication_targets_edit", kwargs=kwargs), safe=False)
|
||||||
|
|
||||||
class ReplicationTargetsDeleteURLView(LoginRequiredMixin, View):
|
class ReplicationTargetsDeleteURLView(LoginRequiredMixin, View):
|
||||||
def get(self, request, *args, **kwargs):
|
def get(self, request, *args, **kwargs):
|
||||||
return JsonResponse(reverse_lazy("core:admin_replication_targets_delete", kwargs["id"]), safe=False)
|
return JsonResponse(reverse_lazy("core:admin_replication_targets_delete", kwargs=kwargs), safe=False)
|
||||||
|
|
||||||
class StaticsURLView(View):
|
class StaticsURLView(View):
|
||||||
def get(self, request, *args, **kwargs):
|
def get(self, request, *args, **kwargs):
|
||||||
|
|
Loading…
Reference in a new issue