Fix deprecation warnings for Django 1.11 and Django 2.0.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2017-07-21 00:25:18 -04:00
parent 42a762481b
commit f09321f6ab
81 changed files with 173 additions and 135 deletions

View File

@@ -2,7 +2,7 @@ from __future__ import unicode_literals
from django.contrib.auth import get_user_model
from django.contrib.auth.models import Group
from django.core.urlresolvers import reverse
from django.urls import reverse
from rest_api.tests import BaseAPITestCase
from user_management.tests.literals import (

View File

@@ -1,8 +1,8 @@
from __future__ import unicode_literals
from django.contrib.auth import get_user_model
from django.core.urlresolvers import reverse
from django.test.client import Client
from django.urls import reverse
from common.tests import BaseTestCase
from user_management.tests import (
@@ -27,7 +27,7 @@ class PermissionsViewsTestCase(BaseTestCase):
username=TEST_ADMIN_USERNAME, password=TEST_ADMIN_PASSWORD
)
self.assertTrue(logged_in)
self.assertTrue(self.admin_user.is_authenticated())
self.assertTrue(self.admin_user.is_authenticated)
def test_role_creation_view(self):
response = self.client.post(