Skip to content

Commit

Permalink
#550 Add minor pdd issue
Browse files Browse the repository at this point in the history
  • Loading branch information
duker33 committed Sep 11, 2018
1 parent 870dc43 commit 85004d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shopelectro/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ def __init__( # Ignore PyDocStyleBear
def get_sorting_index(self):
return int(self.url_kwargs.get('sorting', 0))

# TODO - move to property as in `products` case
# @todo #550:15m Move `TaggedCategory.get_tags` to property.
# As in `products` property case.
def get_tags(self) -> typing.Optional[TagQuerySet]:
request_tags = self.url_kwargs.get('tags')
if not request_tags:
Expand Down Expand Up @@ -378,7 +379,6 @@ def get_products_count(self):
mobile_view = get_user_agent(self.request).is_mobile
return settings.PRODUCTS_ON_PAGE_MOB if mobile_view else settings.PRODUCTS_ON_PAGE_PC

# TODO - reload self.products
def get_paginated_page_or_404(self, per_page, page_number) -> Paginator:
try:
return Paginator(self.all_products, per_page).page(page_number)
Expand Down

0 comments on commit 85004d4

Please sign in to comment.