diff --git a/src/myauth/managers.py b/src/myauth/managers.py index ebc7ce2..1995915 100644 --- a/src/myauth/managers.py +++ b/src/myauth/managers.py @@ -1,6 +1,5 @@ # -*- coding: utf-8 -*- import hashlib -from random import random from django.utils import timezone from django.db import models diff --git a/templates/customer/profile/orders_list.html b/templates/customer/profile/orders_list.html index 0ad3373..281cbd1 100644 --- a/templates/customer/profile/orders_list.html +++ b/templates/customer/profile/orders_list.html @@ -25,7 +25,7 @@ {% endif %} - {% if 'активна' in object.get_paid_status %} + {% if 'активна' in object.get_paid_status and not object.type %}