Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

some changes with django2.0 #51

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update admin.py
Django 2.0
from django.urls import reverse
  • Loading branch information
wangzhaohe authored Feb 10, 2018
commit e56d4c2d624b56bc188f15c58585e33491157c30
7 changes: 6 additions & 1 deletion export_action/admin.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import uuid
from django.contrib import admin
from django.contrib.contenttypes.models import ContentType
from django.core.urlresolvers import reverse

try:
from django.core.urlresolvers import reverse
except Exception:
from django.urls import reverse

from django.http import HttpResponseRedirect
from django.utils.translation import ugettext_lazy as _