code4lib / shortimer

a webapp for code4lib jobs
http://jobs.code4lib.org
40 stars 15 forks source link

Fix syntax for running migrations from scratch #56

Closed ryanfb closed 8 years ago

ryanfb commented 8 years ago

Without this, I get Error in migration: jobs:0025_populate_locations when I run python manage.py syncdb --migrate --noinput. I believe this fixes it because orm. will cause the forwards migration to use the model at the time this migration was created, rather than the latest model we get if we use from shortimer.jobs.models import Job, Employer (see: http://django-south.readthedocs.io/en/latest/tutorial/part3.html).