mirror of
https://github.com/jazzband/django-categories.git
synced 2026-03-16 22:30:24 +00:00
Updating the signal registration to check for south first and fail silently
This commit is contained in:
parent
2b4512beae
commit
0d167164a1
1 changed files with 2 additions and 1 deletions
|
|
@ -135,8 +135,9 @@ class CategoryRelation(models.Model):
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue