Skip to content

Commit

Permalink
Merge pull request #5 from txtr/master
Browse files Browse the repository at this point in the history
Checking INSTALLED_APPS for south before adding creation actions
  • Loading branch information
gregmuellegger committed Jun 26, 2012
2 parents a4ed300 + d16e59d commit 96f2035
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sortedm2m/fields.py
Expand Up @@ -5,6 +5,7 @@
from django.db.models.fields.related import add_lazy_relation, create_many_related_manager
from django.db.models.fields.related import ManyToManyField, ReverseManyRelatedObjectsDescriptor
from django.db.models.fields.related import RECURSIVE_RELATIONSHIP_CONSTANT
from django.conf import settings
from django.utils.functional import curry
from sortedm2m.forms import SortedMultipleChoiceField

Expand Down Expand Up @@ -249,7 +250,7 @@ def formfield(self, **kwargs):
except ImportError:
south = None

if south is not None:
if south is not None and 'south' in settings.INSTALLED_APPS:
from south.modelsinspector import add_introspection_rules
add_introspection_rules(
[(
Expand Down

0 comments on commit 96f2035

Please sign in to comment.