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
|
||||
|
||||
return HttpResponse(reverse('view_recipe', args=[recipe.pk]))
|
||||
|
||||
if 'id' in request.GET:
|
||||
context = {'bookmarklet': 25}
|
||||
|
||||
elif 'id' in request.GET:
|
||||
context = {'bookmarklet': request.GET.get('id')}
|
||||
else:
|
||||
context = {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user