mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2025-12-24 02:39:20 -05:00
retrieve bookmarklet ID from get
This commit is contained in:
@@ -183,9 +183,9 @@ def import_url(request):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
return HttpResponse(reverse('view_recipe', args=[recipe.pk]))
|
return HttpResponse(reverse('view_recipe', args=[recipe.pk]))
|
||||||
|
|
||||||
if 'id' in request.GET:
|
elif 'id' in request.GET:
|
||||||
context = {'bookmarklet': 25}
|
context = {'bookmarklet': request.GET.get('id')}
|
||||||
else:
|
else:
|
||||||
context = {}
|
context = {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user