Skip to content

Commit

Permalink
내 사진 피드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
shing100 committed Aug 22, 2018
1 parent 4bbe731 commit 5cfdb46
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions limstagram/images/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ def get(self, request, format=None):
for image in user_images:
image_list.append(image)

my_images = user.image.all()[:2]

for image in my_images:
image_list.append(image)

## sorted_list = sorted(image_list, key=get_key, reverse=True)
sorted_list = sorted(image_list, key=lambda image: image.created_at, reverse=True)

Expand Down

0 comments on commit 5cfdb46

Please sign in to comment.