diff options
author | luxagraf <sng@luxagraf.net> | 2015-12-01 22:31:52 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2015-12-01 22:31:52 -0500 |
commit | ef9747be6d50d536c149d31e978b61e2381baba3 (patch) | |
tree | 585592bece9300d9411e43bc19ef8aa32e4c7238 /app/projects/views.py | |
parent | ac914254cdde1e8fc9c5632482bd90a9d8cbf833 (diff) |
updated site to work with django 1.9's new admin look
Diffstat (limited to 'app/projects/views.py')
-rw-r--r-- | app/projects/views.py | 4 |
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: |