Anonymous user
Django for Designers/CRUD: Difference between revisions
→CRUD with asynchronous Javascript: if request.is_ajax()
imported>Paulproteus (If the request is AJAX, then return the content) |
imported>Paulproteus (→CRUD with asynchronous Javascript: if request.is_ajax()) |
||
Line 385:
tag.save()
tag.bookmarks.add(new_bookmark)
return render(request, 'bookmark.html', {'bookmark': new_bookmark})
return redirect(index)
else:
response = 'Errors: '
|