Commit a8491df0 authored by Floréal Cabanettes's avatar Floréal Cabanettes

Remove debug lines

parent 50c29aa4
......@@ -10,7 +10,6 @@ class RecipesChangeView(View):
def post(self, request):
# Check data:
print(request.POST)
allowed_actions = ['1', '2', '3', '4', '5', 'empty_trash']
if "action" not in request.POST or ("action" in request.POST and request.POST["action"] not in allowed_actions)\
or ("selection[]" not in request.POST and request.POST["action"] != "empty_trash"):
......
......@@ -29,7 +29,6 @@ class RecipesView(View):
:param trash: if True, show trash
:return:
"""
print(page)
if not self.request.user.is_authenticated:
return redirect('%s?next=%s' % (settings.LOGIN_URL, request.path))
recipes = Recipe.objects.all().order_by("pub_date").reverse()
......
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