diff --git a/django_lostplaces/lostplaces/views/base_views.py b/django_lostplaces/lostplaces/views/base_views.py index ee09075..fe3e5ab 100644 --- a/django_lostplaces/lostplaces/views/base_views.py +++ b/django_lostplaces/lostplaces/views/base_views.py @@ -10,7 +10,7 @@ from django.contrib.auth.mixins import UserPassesTestMixin, LoginRequiredMixin from django.contrib.messages.views import SuccessMessageMixin from django.shortcuts import redirect, get_object_or_404 -from django.urls import reverse_lazy +from django.urls import reverse_lazy, reverse from django.utils.translation import ugettext_lazy as _ from lostplaces.models import Place diff --git a/django_lostplaces/lostplaces/views/place_views.py b/django_lostplaces/lostplaces/views/place_views.py index 11239d8..c96f442 100644 --- a/django_lostplaces/lostplaces/views/place_views.py +++ b/django_lostplaces/lostplaces/views/place_views.py @@ -13,7 +13,7 @@ from django.contrib.messages.views import SuccessMessageMixin from django.utils.translation import ugettext_lazy as _ from django.shortcuts import render, redirect, get_object_or_404 -from django.urls import reverse_lazy +from django.urls import reverse_lazy, reverse from lostplaces.models import Place, PlaceImage from lostplaces.views.base_views import IsAuthenticatedMixin, IsPlaceSubmitterMixin diff --git a/django_lostplaces/lostplaces/views/views.py b/django_lostplaces/lostplaces/views/views.py index 793a540..97971fd 100644 --- a/django_lostplaces/lostplaces/views/views.py +++ b/django_lostplaces/lostplaces/views/views.py @@ -6,7 +6,7 @@ from django.views.generic.edit import CreateView from django.contrib.messages.views import SuccessMessageMixin from django.contrib import messages -from django.urls import reverse_lazy +from django.urls import reverse_lazy, reverse from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponseForbidden from django.utils.translation import ugettext_lazy as _