Commit c7453a3d authored by Samuel GAIST's avatar Samuel GAIST

[global] Updated all reverse import to use from django.urls

parent 312365da
......@@ -31,7 +31,7 @@ from django.shortcuts import get_object_or_404
from django.http import Http404
from django.db import models
from django.db.models import Q
from django.core.urlresolvers import reverse
from django.urls import reverse
from django.template import loader
from django.template import Context
......
......@@ -28,7 +28,7 @@
from __future__ import unicode_literals
from django.db.models import Q
from django.core.urlresolvers import reverse
from django.urls import reverse
from django.template import loader
from django.template import Context
......
......@@ -25,7 +25,7 @@
# #
###############################################################################
from django.core.urlresolvers import reverse
from django.urls import reverse
from django.test import TestCase
......
......@@ -27,7 +27,7 @@
from django.db import models
from django.conf import settings
from django.core.urlresolvers import reverse
from django.urls import reverse
from django.db.models import Count, Q
import beat.core.algorithm
......
......@@ -30,7 +30,7 @@ import simplejson as json
from django.contrib.auth.models import User
from django.conf import settings
from django.core.urlresolvers import reverse
from django.urls import reverse
from django.core.files.uploadedfile import SimpleUploadedFile
from ...dataformats.models import DataFormat
......
......@@ -27,7 +27,7 @@
from django.db import models
from django.conf import settings
from django.core.urlresolvers import reverse
from django.urls import reverse
from ..experiments.models import Experiment
from ..toolchains.models import Toolchain
......
......@@ -32,7 +32,7 @@ from datetime import datetime, timedelta
from django.contrib.auth.models import User
from django.conf import settings
from django.core.urlresolvers import reverse
from django.urls import reverse
from django.test import TestCase
from django.utils import six
from django.core.management import call_command
......
......@@ -26,7 +26,7 @@
###############################################################################
from django.db import models
from django.core.urlresolvers import reverse
from django.urls import reverse
from ...code.models import Code
from ...common.models import Shareable
......
......@@ -29,7 +29,7 @@
import operator
from django.db import models
from django.core.urlresolvers import reverse
from django.urls import reverse
from django.contrib.auth.models import Group
from django.utils.translation import ugettext_lazy as _
......
......@@ -36,7 +36,7 @@ logger = logging.getLogger(__name__)
from django.db import models
from django.db import transaction
from django.conf import settings
from django.core.urlresolvers import reverse
from django.urls import reverse
from ...common.texts import Messages
......
......@@ -28,7 +28,7 @@
from ...common.testutils import BaseTestCase as APITestCase
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.urls import reverse
class CancelAllExperimentsAPI(APITestCase):
......
......@@ -34,7 +34,7 @@ import simplejson
from django.http import Http404, HttpResponseRedirect
from django.conf import settings
from django.core.urlresolvers import reverse
from django.urls import reverse
from django.shortcuts import get_object_or_404
from django.shortcuts import render
from django.contrib.auth.decorators import login_required
......
......@@ -26,7 +26,7 @@
###############################################################################
from django.http import HttpResponse
from django.core.urlresolvers import reverse
from django.urls import reverse
from rest_framework.response import Response
from rest_framework import permissions
......
......@@ -31,7 +31,7 @@ import simplejson
from django.db import models
from django.conf import settings
from django.core.urlresolvers import reverse
from django.urls import reverse
import beat.core.database
from beat.backend.python.hash import hashDataset
......
......@@ -30,7 +30,7 @@ from datetime import datetime
from django.contrib.auth.models import User
from django.conf import settings
from django.core.urlresolvers import reverse
from django.urls import reverse
from .models import Database
......
......@@ -30,7 +30,7 @@ import collections
from django.db import models
from django.conf import settings
from django.core.urlresolvers import reverse
from django.urls import reverse
import beat.core.hash
import beat.core.dataformat
......
......@@ -30,7 +30,7 @@ import simplejson as json
from django.contrib.auth.models import User
from django.conf import settings
from django.core.urlresolvers import reverse
from django.urls import reverse
from ...common.testutils import tearDownModule
from ..models import DataFormat
......
......@@ -26,7 +26,7 @@
###############################################################################
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.urls import reverse
from django.http import Http404
from django.shortcuts import get_object_or_404
from django.shortcuts import render
......
......@@ -33,7 +33,7 @@ from django.core.files.base import ContentFile
from django.utils import six
from django.utils.html import format_html
from django.utils.safestring import mark_safe
from django.core.urlresolvers import reverse
from django.urls import reverse
from django.db.models import Max, Count
from .models import Experiment as ExperimentModel
......
......@@ -27,7 +27,7 @@
from django.db import models
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.urls import reverse
from django.conf import settings
from django.core.exceptions import ObjectDoesNotExist
from django.core.mail import send_mail
......
......@@ -33,7 +33,7 @@ from datetime import datetime
from django.conf import settings
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.urls import reverse
from .models import Experiment
from .models import CachedFile
......
......@@ -27,7 +27,7 @@
from django.db import models
from django.conf import settings
from django.core.urlresolvers import reverse
from django.urls import reverse
import beat.core.library
......
......@@ -30,7 +30,7 @@ import simplejson as json
from django.contrib.auth.models import User
from django.conf import settings
from django.core.urlresolvers import reverse
from django.urls import reverse
import beat.core.library
......
......@@ -30,7 +30,7 @@
from django.contrib import messages
from django.conf import settings
from django.core.urlresolvers import reverse
from django.urls import reverse
from django.utils.safestring import mark_safe
def remove_banner_message(request):
......
......@@ -27,7 +27,7 @@
from django.db import models
from django.conf import settings
from django.core.urlresolvers import reverse
from django.urls import reverse
from django.contrib.auth.models import User
......
......@@ -33,7 +33,7 @@ import simplejson as json
from django.test import TestCase
from django.contrib.auth.models import User
from django.conf import settings
from django.core.urlresolvers import reverse
from django.urls import reverse
from ..dataformats.models import DataFormat
from .models import Plotter, PlotterParameter
......
......@@ -30,7 +30,7 @@ from django.contrib.auth.models import User
from django.shortcuts import get_object_or_404
from django.http import Http404
from django.db.models import Q
from django.core.urlresolvers import reverse
from django.urls import reverse
from rest_framework import generics
from rest_framework import views
......
......@@ -27,7 +27,7 @@
from django.db import models
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.urls import reverse
from django.utils.encoding import force_bytes, force_text
from django.conf import settings
......
......@@ -25,7 +25,7 @@
# #
###############################################################################
from django.core.urlresolvers import reverse
from django.urls import reverse
from rest_framework import status
from rest_framework.test import APITestCase
......
......@@ -26,7 +26,7 @@
###############################################################################
from django.db import models
from django.core.urlresolvers import reverse
from django.urls import reverse
from django.contrib.auth.models import User
from beat.core.hash import hash
......
......@@ -27,7 +27,7 @@
from django.test import TestCase
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.urls import reverse
from datetime import datetime
from datetime import date
......
......@@ -27,7 +27,7 @@
from django.db import models
from django.db.models import Q
from django.core.urlresolvers import reverse
from django.urls import reverse
from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy as _
......
......@@ -26,7 +26,7 @@
###############################################################################
from django.core.urlresolvers import reverse
from django.urls import reverse
from rest_framework import status
from rest_framework.test import APITestCase
......
......@@ -29,7 +29,7 @@ import simplejson
from django.conf import settings
from django.db import models
from django.core.urlresolvers import reverse
from django.urls import reverse
import beat.core.hash
import beat.core.toolchain
......
......@@ -33,7 +33,7 @@ import simplejson as json
from django.test import TestCase
from django.contrib.auth.models import User
from django.conf import settings
from django.core.urlresolvers import reverse
from django.urls import reverse
import beat.core.toolchain
......
......@@ -32,7 +32,7 @@ Views which allow users to create and activate accounts.
from django.conf import settings
from django.core.urlresolvers import reverse
from django.urls import reverse
from django.http import HttpResponseRedirect
from django.shortcuts import render
from django.views.decorators.csrf import csrf_protect
......
......@@ -36,7 +36,7 @@ from django.contrib.auth.models import User
from django.contrib import messages
from django.http import HttpResponseRedirect, HttpResponse
from django.contrib.auth.decorators import login_required
from django.core.urlresolvers import reverse
from django.urls import reverse
from django.db.models import Q
from django.core.mail import EmailMessage
from django.template.loader import render_to_string
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment