Skip to content

Commit

Permalink
Updating the signal registration to check for south first and fail si…
Browse files Browse the repository at this point in the history
…lently
  • Loading branch information
coordt committed Aug 28, 2012
1 parent 2b4512b commit 0d16716
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion categories/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,9 @@ def __unicode__(self):
return u"CategoryRelation"

try:
from south.db import db # South is required for migrating. Need to check for it
from django.db.models.signals import post_syncdb
from categories.migration import migrate_app
post_syncdb.connect(migrate_app)
except ImportError, e:
print e
pass

0 comments on commit 0d16716

Please sign in to comment.