Rafał Pitoń 8 лет назад
Родитель
Сommit
b3d64eee2c
2 измененных файлов с 3 добавлено и 3 удалено
  1. 2 3
      misago/threads/api/threadendpoints/list.py
  2. 1 0
      misago/threads/serializers/poll.py

+ 2 - 3
misago/threads/api/threadendpoints/list.py

@@ -1,9 +1,8 @@
 from rest_framework.response import Response
 
 from misago.core.shortcuts import get_int_or_404
-from misago.threads.viewmodels.category import (
-    PrivateThreadsCategory, ThreadsCategory, ThreadsRootCategory)
-from misago.threads.viewmodels.threads import ForumThreads, PrivateThreads
+from misago.threads.viewmodels import (
+    ForumThreads, PrivateThreads, PrivateThreadsCategory, ThreadsCategory, ThreadsRootCategory)
 
 
 class ThreadsList(object):

+ 1 - 0
misago/threads/serializers/poll.py

@@ -10,6 +10,7 @@ from misago.threads.models import Poll
 
 __all__ = [
     'PollSerializer',
+    'EditPollSerializer',
     'NewPollSerializer',
     'PollChoiceSerializer',
 ]