Created
October 29, 2014 09:14
-
-
Save maximvl/a886a6a25ad4ee317222 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
| keyOrder = ['first_name', 'last_name', 'email', 'password1', | |
| 'password2', 'post', 'birthday', 'phone', 'city'] | |
| res = OrderedDict() | |
| for key in keyOrder: | |
| res[key] = self.fields.get(key) | |
| self.fields = res |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment