mirror of
https://github.com/jazzband/django-categories.git
synced 2026-03-16 22:30:24 +00:00
Placing some south imports into try blocks.
This commit is contained in:
parent
7fa53a7003
commit
8be19c893a
3 changed files with 8 additions and 4 deletions
|
|
@ -1,4 +1,8 @@
|
|||
from django.db.models.signals import post_syncdb
|
||||
from categories.migration import migrate_app
|
||||
try:
|
||||
from south.db import db
|
||||
from django.db.models.signals import post_syncdb
|
||||
from categories.migration import migrate_app
|
||||
|
||||
post_syncdb.connect(migrate_app)
|
||||
post_syncdb.connect(migrate_app)
|
||||
except ImportError:
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ These functions handle the adding of fields to other models
|
|||
"""
|
||||
from django.db.models import FieldDoesNotExist
|
||||
import fields
|
||||
|
||||
from settings import FIELD_REGISTRY, MODEL_REGISTRY
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
from categories.tests.category_import import *
|
||||
from categories.tests.templatetags import *
|
||||
from categories.tests.manager import *
|
||||
from categories.tests.registration import *
|
||||
|
||||
__fixtures__ = ['categories.json']
|
||||
|
|
|
|||
Loading…
Reference in a new issue