Created
November 4, 2015 21:24
-
-
Save fchevitarese/da597a4cea95ba23e4d4 to your computer and use it in GitHub Desktop.
restrict.py
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
mydict = {} | |
mydict[59] = 150 | |
for restrict in Restrict.objects.filter(question_parent=form.id): | |
new_restrict = Restrict() | |
new_restrict.question = mydict[restrict.id] | |
new_restrict..... | |
new_restrict.save() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment