summaryrefslogtreecommitdiff
path: root/app/projects
diff options
context:
space:
mode:
Diffstat (limited to 'app/projects')
-rw-r--r--app/projects/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/projects/views.py b/app/projects/views.py
index 39ae781..23500e0 100644
--- a/app/projects/views.py
+++ b/app/projects/views.py
@@ -1,6 +1,6 @@
from django.shortcuts import render_to_response, get_object_or_404
from django.template import RequestContext
-from django.db.models import get_model
+from django.apps import apps
from projects.shortcuts import render_to_geojson
from projects.models.natparks import NationalParks
@@ -17,7 +17,7 @@ projects = {
def detail(request, slug):
"""Projects by slug"""
name = projects[slug]
- model = get_model('projects', name)
+ model = apps.get_model('projects', name)
if slug == 'national-parks':
qs = model.objects.filter(visited__exact=True).order_by("-date_visited_begin")
else: