Ticket #47 (closed defect: fixed)
Automatic initial migration generation fails when models.py does not end in a blank line
|Reported by:||sean.b.oconnor@…||Owned by:||andrew|
If one executes the command "./manage.py startmigration --initial app_name" on an app where the models.py file simply ends at the end of the last field of the last model, instead of on a blank line the following error is raised:
Warning: Could not generate field definition for Model.field, manual editing of migration required.
Additionally the migration file generated contains a like for that field similar to:
('field', <<< REPLACE THIS WITH FIELD DEFINITION FOR HitEvent.date >>>),
This should be corrected so that similar models.py files can be parsed without error.
- Status changed from closed to reopened
- Resolution fixed deleted
- Version changed from subversion to 0.4
- Milestone set to The Future