From 868fb56828e7405e9174391d84f103620c4342ce Mon Sep 17 00:00:00 2001 From: Dmitriy Shesterkin Date: Thu, 6 Jul 2017 16:19:09 +0300 Subject: [PATCH] fixs --- src/myauth/managers.py | 1 - templates/customer/profile/orders_list.html | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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 %}