Commit 75f725c1 authored by 段英荣's avatar 段英荣

modify

parent 46f22954
......@@ -102,7 +102,7 @@ class User(models.Model):
pick_user_id_list = tuple(pick_user_id_list)
pick_user_detail_list = list()
sql_data_list = self.objects.filter(user_id__in=pick_user_id_list)
sql_data_list = User.objects.filter(user_id__in=pick_user_id_list)
for detail_data in sql_data_list:
item = {
"user_id":detail_data.user_id,
......@@ -122,7 +122,7 @@ class User(models.Model):
same_group_user_id_list.append(user_items_list.user_id)
same_group_detail_list = list()
sql_data_list = self.objects.filter(user_id__in=same_group_user_id_list)
sql_data_list = User.objects.filter(user_id__in=same_group_user_id_list)
for detail_data in sql_data_list:
item = {
"user_id":detail_data.user_id,
......
......@@ -73,14 +73,9 @@ class UserTransfer(object):
try:
res["tag_list"] = instance.get_user_tag_id_list()
res["attention_user_id_list"] = cls.get_follow_user_id_list(userInstance=instance)
res["attention_group_id_list"] = []
res["pick_user_id_list"] = []
res["same_group_user_id_list"] = []
"""
res["attention_group_id_list"] = instance.get_attention_group_id_list()
res["pick_user_id_list"] = instance.get_pick_user_id_list()
res["same_group_user_id_list"] = instance.get_same_group_user_id_list()
"""
except:
logging.error("duan test,catch exception,err_msg:%s" % traceback.format_exc())
res["tag_list"] = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment