Skip to content

Instantly share code, notes, and snippets.

@lukasklein
Created October 26, 2012 09:40
Show Gist options
  • Save lukasklein/3957868 to your computer and use it in GitHub Desktop.
Save lukasklein/3957868 to your computer and use it in GitHub Desktop.
Django change request.POST
def index(request):
if request.method == 'POST':
post_mutable = request.post.copy()
# Now you can change values:
post_mutable['answer'] = 42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment