From 61f7e43bdb0166fcd00fa3b574f3d22d05921649 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Sun, 7 Jan 2018 17:20:45 +0100 Subject: [PATCH] Erhm... --- src/shop/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shop/admin.py b/src/shop/admin.py index c23cf268..5362cf9d 100644 --- a/src/shop/admin.py +++ b/src/shop/admin.py @@ -35,13 +35,13 @@ class ProductCategoryAdmin(admin.ModelAdmin): def available_from(product): - if product.available_in: + if product.available_in.lower: return product.available_in.lower.strftime("%c") return "None" available_from.short_description = 'Available from' def available_to(product): - if product.available_in: + if product.available_in.upper: return product.available_in.upper.strftime("%c") return "None" available_to.short_description = 'Available to'