mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2025-02-03 20:09:18 +01:00
Django <2 is no longer supported
This commit is contained in:
parent
d32d23e4e2
commit
3b5a7fe49a
@ -7,12 +7,7 @@ views/public.py - All public facing views, eg non-staff (no authentication
|
|||||||
required) views.
|
required) views.
|
||||||
"""
|
"""
|
||||||
from django.core.exceptions import ObjectDoesNotExist, PermissionDenied
|
from django.core.exceptions import ObjectDoesNotExist, PermissionDenied
|
||||||
try:
|
from django.urls import reverse
|
||||||
# Django 2.0+
|
|
||||||
from django.urls import reverse
|
|
||||||
except ImportError:
|
|
||||||
# Django < 2
|
|
||||||
from django.core.urlresolvers import reverse
|
|
||||||
from django.http import HttpResponseRedirect, HttpResponse
|
from django.http import HttpResponseRedirect, HttpResponse
|
||||||
from django.shortcuts import render
|
from django.shortcuts import render
|
||||||
from django.utils.http import urlquote
|
from django.utils.http import urlquote
|
||||||
|
Loading…
Reference in New Issue
Block a user