This commit is contained in:
virusdefender
2017-01-23 16:48:04 +08:00
parent cfde5b93e5
commit d9fad97e35
27 changed files with 46 additions and 52 deletions

View File

@@ -1,7 +1,6 @@
import json
from django.utils import timezone
from rest_framework import serializers

View File

@@ -1,13 +1,12 @@
import functools
import json
import logging
import functools
from django.http import HttpResponse, QueryDict
from django.utils.decorators import method_decorator
from django.views.decorators.csrf import csrf_exempt
from django.views.generic import View
logger = logging.getLogger(__name__)

View File

@@ -1,9 +1,8 @@
from django.test.testcases import TestCase
from django.core.urlresolvers import reverse
from django.test.testcases import TestCase
from rest_framework.test import APIClient
from account.models import User, AdminType
from account.models import AdminType, User
class APITestCase(TestCase):

View File

@@ -1,6 +1,7 @@
from django.core.management.base import BaseCommand
from account.models import User, UserProfile, AdminType
from utils.shortcuts import rand_str
from account.models import AdminType, User, UserProfile
from utils.shortcuts import rand_str # NOQA
class Command(BaseCommand):

View File

@@ -3,7 +3,6 @@ import random
from django.utils.crypto import get_random_string
logger = logging.getLogger(__name__)