Skip to content

Commit

Permalink
Change how addresses are matched
Browse files Browse the repository at this point in the history
  • Loading branch information
denniel-sadian committed May 22, 2021
1 parent d40ec77 commit 98558ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion items/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def get_queryset(self):
queryset = queryset.filter(user__address__icontains=get_address)
# Get post based from the rider's address.
else:
user_address = self.request.user.address
user_address = self.request.user.address.split(',')[-1]
queryset = queryset.filter(user__address__icontains=user_address)

# The user is just a regular user, so just get his or her posts.
Expand Down

0 comments on commit 98558ef

Please sign in to comment.