Django for Designers/CRUD: Difference between revisions

imported>Paulproteus
(If the request is AJAX, then return the content)
imported>Paulproteus
Line 385:
tag.save()
tag.bookmarks.add(new_bookmark)
returnif render(request, 'bookmark.html', {'bookmark'is_ajax(): new_bookmark})
return render(request, 'bookmark.html', {'bookmark': new_bookmark})
return redirect(index)
else:
response = 'Errors: '
Anonymous user