Changes between Initial Version and Version 1 of Ticket #29515
- Timestamp:
- Jun 22, 2018, 9:01:38 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29515
- Property Component Uncategorized → Migrations
- Property Resolution → wontfix
- Property Status new → closed
-
Ticket #29515 – Description
initial v1 1 1 SHORT VERSION: put sample code into the generated file when creating an "empty" migration, like this: 2 2 {{{ 3 3 #def combine_names(apps, schema_editor): 4 4 # # We can't import the Person model directly as it may be a newer … … 9 9 # person.save() 10 10 11 12 and then13 14 11 operations = [ 15 12 #migrations.RunPython(combine_names), 16 13 ] 17 14 }}} 18 15 LONG VERSION/JUSTIFICATION: 19 16