product refactor bullshit

This commit is contained in:
Parsa Nazer
2025-02-08 17:37:57 +03:30
parent ef2d35b2ed
commit 31782bf743
8 changed files with 200 additions and 63 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ def dollor_price(request):
return str(dollor_object.price)[:2]
def comment_count(request):
return CommentModel.objects.all().count()
return CommentModel.objects.filter(review_status='not_reviwed').count()
def new_ticket_count(request):
return Ticket.objects.filter(status__in=['open', 'in_progress']).count()