Fakultas Ilmu Komputer UI

Commit 2911c42e authored by Izzatul Muttaqin's avatar Izzatul Muttaqin
Browse files

Rewrite tutorial-2 with refactor to match test

parent 65d3ac86
Pipeline #21484 failed with stage
in 25 seconds
......@@ -16,4 +16,4 @@
{% endfor %}
</table>
</body>
</html>
</html>
\ No newline at end of file
......@@ -5,7 +5,7 @@ from .helper import counter_comment
def home_page(request):
if request.method == 'POST':
Item.objects.create(text=request.POST['item_text'])
return redirect('/lists/')
return redirect('/')
items = Item.objects.all()
comment = counter_comment(Item.objects.count())
......
Supports Markdown
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