Moved the registration of the signal to models.py where it will get executed

This commit is contained in:
Corey Oordt 2012-08-28 06:57:22 -05:00
parent e41623b4ad
commit c522ae6d96

View file

@ -133,3 +133,10 @@ class CategoryRelation(models.Model):
def __unicode__(self):
return u"CategoryRelation"
try:
from django.db.models.signals import post_syncdb
from categories.migration import migrate_app
post_syncdb.connect(migrate_app)
except ImportError, e:
print e