Created
October 11, 2012 11:14
-
-
Save jan-matejka/3871695 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
| class Migration(DataMigration): | |
| def forwards(self, orm): | |
| "Write your forwards methods here." | |
| log.debug("start") | |
| for order in orm['order.order'].objects.filter(number=None): | |
| log.debug("%s %s %s", order, order.id, order.number) | |
| order.save() | |
| # Note: Remember to use orm['appname.ModelName'] rather than "from appname.models..." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment