Erhm...
This commit is contained in:
parent
19963db102
commit
61f7e43bdb
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue