Skip to content

Instantly share code, notes, and snippets.

@JshWright
Created May 28, 2010 18:16
Show Gist options
  • Save JshWright/417509 to your computer and use it in GitHub Desktop.
Save JshWright/417509 to your computer and use it in GitHub Desktop.
def ajaxsubmit(request):
new_msg = Message(msg = request.POST['msg'],
posted_by = request.POST['posted_by'])
new_msg.save()
# Updating the message is handled by a post_save signal,
# so just return an empty 200.
return HttpResponse()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment