honmaple 7 лет назад
Родитель
Сommit
3d2039080b
2 измененных файлов с 5 добавлено и 4 удалено
  1. 3 2
      forums/api/user/views.py
  2. 2 2
      runserver.py

+ 3 - 2
forums/api/user/views.py

@@ -6,7 +6,7 @@
 # Author: jianglin
 # Email: xiyang0807@gmail.com
 # Created: 2016-12-15 22:08:06 (CST)
-# Last Update:星期日 2017-4-2 11:51:33 (CST)
+# Last Update: Thursday 2018-03-01 17:58:50 (CST)
 #          By:
 # Description:
 # **************************************************************************
@@ -98,7 +98,8 @@ class UserFollowerListView(MethodView):
 
 
 class UserFollowingListView(MethodView):
-    def get(self):
+    @login_required
+    def get(self, username):
         return redirect(url_for('follow.topic'))
 
 

+ 2 - 2
runserver.py

@@ -6,7 +6,7 @@
 # Author: jianglin
 # Email: xiyang0807@gmail.com
 # Created: 2016-10-25 22:01:29 (CST)
-# Last Update: 星期日 2018-02-11 15:24:50 (CST)
+# Last Update: 星期五 2018-02-23 10:43:07 (CST)
 #          By:
 # Description:
 # **************************************************************************
@@ -16,8 +16,8 @@ from werkzeug.contrib.fixers import ProxyFix
 from code import interact
 from getpass import getpass
 
-from forums.extension import db, cache, search
 from forums import create_app
+from forums.extension import db, cache, search
 from forums.api.user.models import User
 
 import click