Fakultas Ilmu Komputer UI

Commit b8cd74aa authored by Nurma Ayu Wigati S. Subroto's avatar Nurma Ayu Wigati S. Subroto
Browse files

[#46] Delete Rating

parent e1999603
Pipeline #60712 passed with stages
in 21 minutes and 33 seconds
......@@ -335,6 +335,9 @@ def add_rating_materi(request):
def edit_rating_materi(request, pk):
rating = get_object_or_404(Rating, pk=pk)
def delete_rating_materi(request, pk):
rating = Rating.objects.filter(pk=pk).delete()
def download_materi(request, pk):
materi = get_object_or_404(Materi, pk=pk)
path = materi.content.path
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment