Skip to content

Commit

Permalink
fix: update security
Browse files Browse the repository at this point in the history
  • Loading branch information
roniahmadi committed Feb 28, 2024
1 parent afef1e2 commit 6408ec0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class DeleteAlamatToko(FrontPage):
def post(self, request, id, id_alamat):
userprofileaddress = UserStoreAddress.objects.get(pk=id_alamat)
userprofileaddress.delete()
return redirect("/toko/{}/alamat".format(id))
return redirect(reverse("alamat_toko", id))


@method_decorator(csrf_exempt, name="dispatch")
Expand Down Expand Up @@ -891,7 +891,7 @@ def post(self, request, id, produk_id):
gproduk.nama = nama
gproduk.gambar = filess3
gproduk.save()
return redirect("/toko/{}/list_produk/".format(str(id)))
return redirect(reverse("list_produk_toko", str(id)))


@method_decorator(csrf_exempt, name="dispatch")
Expand All @@ -901,7 +901,7 @@ def post(self, request, id, produk_id):
produk = Produk.objects.get(pk=produk_id)
produk.is_archive = True
produk.save()
return redirect("/toko/{}/list_produk/".format(str(id)))
return redirect(reverse("list_produk_toko", str(id)))


@method_decorator(csrf_exempt, name="dispatch")
Expand Down

0 comments on commit 6408ec0

Please sign in to comment.