Skip to content

Commit

Permalink
fixed errors with imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoor committed Mar 1, 2017
1 parent 2ce0318 commit cc2dc41
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rest_framework_jwt/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@

from six import string_types

from django.db.models.loading import get_model
try:
from django.db.models.loading import get_model
except ImportError:
from django.apps import apps
get_model = apps.get_model

from calendar import timegm
from datetime import datetime
Expand Down

0 comments on commit cc2dc41

Please sign in to comment.