Skip to content

Commit

Permalink
Importing get_model directly from the loading module appears to fix c…
Browse files Browse the repository at this point in the history
…ertain edge cases. Version bump to 1.0.2
  • Loading branch information
coordt committed Mar 9, 2012
1 parent e95420a commit d2f5d4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions categories/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
__version_info__ = {
'major': 1,
'minor': 0,
'micro': 1,
'micro': 2,
'releaselevel': 'final',
'serial': 1
}
Expand Down Expand Up @@ -67,7 +67,7 @@ def _register(model, field_name, extra_params={}, field=fields.CategoryFKField):

from categories import settings
from django.core.exceptions import ImproperlyConfigured
from django.db.models import get_model
from django.db.models.loading import get_model

for key, value in settings.FK_REGISTRY.items():
model = get_model(*key.split('.'))
Expand Down

0 comments on commit d2f5d4d

Please sign in to comment.