Created
October 6, 2017 04:42
-
-
Save paltman/3f1d0763b4097b53a1d7b967df141adb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@require_POST | |
def ajax_notes_update_order(request, notebook_pk): | |
notebook = get_object_or_404(Notebook, pk=notebook_pk) | |
notebook.note_order = request.POST.get("order") | |
notebook.save() | |
return JsonResponse({}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment