Modify ↓
Ticket #230 (closed defect: worksforme)
django not imported for auto generated migrations
| Reported by: | anonymous | Owned by: | andrew |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | commands | Version: | 0.6 |
| Keywords: | Cc: |
Description
the orm part of a migration specifies something like 'django.models.fields.TextField?' etc... but if the migration is run i get the following error:
ValueError?: Cannot successfully create field 'snippet' for model 'snippetptrpublic': name 'django' is not defined.
if I replace django.models.fields.TextField? with models.TextField? everything works... or if manually import django in the migration.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

This is a bug with the autogenerator; if you upgrade to the current mercurial tip and re-make the affected migration, the problem should go away.