Skip to content

Commit

Permalink
Merge pull request #54 from nikolas/get-app-fix
Browse files Browse the repository at this point in the history
Return appconfig.module if .models_module is None
  • Loading branch information
rwillmer committed May 19, 2015
2 parents 6cce3b0 + 617b90e commit dbf3c6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion django_behave/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
from django.apps import apps

def get_app(label):
return apps.get_app_config(label).models_module
appconfig = apps.get_app_config(label)
return appconfig.models_module or appconfig.module

except ImportError:
from django.db.models import get_app
Expand Down

0 comments on commit dbf3c6c

Please sign in to comment.