Created
October 26, 2012 09:40
-
-
Save lukasklein/3957868 to your computer and use it in GitHub Desktop.
Django change request.POST
This file contains 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
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