mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2025-12-24 02:39:20 -05:00
Merge branch 'develop' into feature/vue3
This commit is contained in:
@@ -157,7 +157,8 @@ def recipe_view(request, pk, share=None):
|
||||
if not ViewLog.objects.filter(recipe=recipe, created_by=request.user, created_at__gt=(timezone.now() - timezone.timedelta(minutes=5)), space=request.space).exists():
|
||||
ViewLog.objects.create(recipe=recipe, created_by=request.user, space=request.space)
|
||||
|
||||
if request.method == "GET":
|
||||
servings = recipe.servings
|
||||
if request.method == "GET" and 'servings' in request.GET:
|
||||
servings = request.GET.get("servings")
|
||||
return render(request, 'recipe_view.html',
|
||||
{'recipe': recipe, 'comments': comments, 'comment_form': comment_form, 'share': share, 'servings': servings})
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
Django==4.2.10
|
||||
cryptography===42.0.2
|
||||
cryptography===42.0.4
|
||||
django-annoying==0.10.6
|
||||
django-autocomplete-light==3.9.7
|
||||
django-cleanup==8.0.0
|
||||
|
||||
Reference in New Issue
Block a user