Commit 06269686 authored by 段英荣's avatar 段英荣

modify

parent 8a991816
...@@ -37,7 +37,7 @@ class User(models.Model): ...@@ -37,7 +37,7 @@ class User(models.Model):
follow_user_id_list.append(user_follow.follow_id) follow_user_id_list.append(user_follow.follow_id)
follow_user_detail_list = list() follow_user_detail_list = list()
sql_data_list = self.objects.get(id__in=follow_user_id_list) sql_data_list = User.objects.get(user_id__in=follow_user_id_list)
for detail_data in sql_data_list: for detail_data in sql_data_list:
item = { item = {
"usr_id":detail_data.user_id, "usr_id":detail_data.user_id,
...@@ -54,7 +54,7 @@ class User(models.Model): ...@@ -54,7 +54,7 @@ class User(models.Model):
pick_user_id_list.append(user_pick.pickuser_id) pick_user_id_list.append(user_pick.pickuser_id)
pick_user_detail_list = list() pick_user_detail_list = list()
sql_data_list = self.objects.get(id__in=pick_user_id_list) sql_data_list = User.objects.get(user_id__in=pick_user_id_list)
for detail_data in sql_data_list: for detail_data in sql_data_list:
item = { item = {
"usr_id":detail_data.user_id, "usr_id":detail_data.user_id,
...@@ -74,7 +74,7 @@ class User(models.Model): ...@@ -74,7 +74,7 @@ class User(models.Model):
same_group_user_id_list.append(user_items_list.user_id) same_group_user_id_list.append(user_items_list.user_id)
same_group_detail_list = list() same_group_detail_list = list()
sql_data_list = self.objects.get(id__in=same_group_user_id_list) sql_data_list = User.objects.get(user_id__in=same_group_user_id_list)
for detail_data in sql_data_list: for detail_data in sql_data_list:
item = { item = {
"usr_id":detail_data.user_id, "usr_id":detail_data.user_id,
......
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