Browse Source

fix #728: sorted imports with isort

Rafał Pitoń 8 years ago
parent
commit
b2ad879c99

+ 1 - 1
misago/threads/paginator.py

@@ -1,4 +1,4 @@
-from math import floor, ceil
+from math import ceil, floor
 
 from django.core.paginator import Paginator
 from django.utils.functional import cached_property

+ 2 - 1
misago/threads/tests/test_threadview.py

@@ -4,7 +4,8 @@ from misago.conf import settings
 from misago.threads import testutils
 from misago.threads.events import record_event
 from misago.threads.models import Post, Thread
-from misago.threads.moderation import hide_post, threads as threads_moderation
+from misago.threads.moderation import threads as threads_moderation
+from misago.threads.moderation import hide_post
 from misago.users.testutils import AuthenticatedUserTestCase
 
 

+ 2 - 1
misago/users/views/lists.py

@@ -1,5 +1,6 @@
 from django.contrib.auth import get_user_model
-from django.shortcuts import get_object_or_404, redirect, render as django_render
+from django.shortcuts import render as django_render
+from django.shortcuts import get_object_or_404, redirect
 from django.urls import reverse
 from django.utils import six
 

+ 3 - 2
misago/users/views/profile.py

@@ -3,7 +3,8 @@ from django.contrib.auth import get_user_model
 from django.core.exceptions import PermissionDenied
 from django.db.transaction import atomic
 from django.http import Http404, JsonResponse
-from django.shortcuts import get_object_or_404, redirect, render as django_render
+from django.shortcuts import render as django_render
+from django.shortcuts import get_object_or_404, redirect
 from django.urls import reverse
 from django.utils import six
 from django.utils.translation import ugettext as _
@@ -20,7 +21,7 @@ from misago.users.online.utils import get_user_status
 from misago.users.pages import user_profile
 from misago.users.permissions import allow_block_user, allow_follow_user
 from misago.users.serializers import (
-    BanDetailsSerializer, UserSerializer, UserCardSerializer, UsernameChangeSerializer)
+    BanDetailsSerializer, UserCardSerializer, UsernameChangeSerializer, UserSerializer)
 from misago.users.viewmodels import UserPosts, UserThreads