From 84b1eec93707a1b1e3043377d500217380dc3ae4 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 3 Aug 2012 14:56:46 -0700 Subject: [PATCH] remove expiration date from current price field (products grid) --- rattail/pyramid/views/products.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/rattail/pyramid/views/products.py b/rattail/pyramid/views/products.py index 4ab7e6a3..0f719a50 100644 --- a/rattail/pyramid/views/products.py +++ b/rattail/pyramid/views/products.py @@ -26,7 +26,6 @@ ``rattail.pyramid.views.products`` -- Product Views """ -from webhelpers.html import literal from webhelpers.html.tags import link_to from sqlalchemy.orm import joinedload @@ -41,8 +40,7 @@ from edbob.pyramid import Session import rattail import rattail.labels -from rattail.pyramid.forms import (UpcFieldRenderer, PriceFieldRenderer, - PriceWithExpirationFieldRenderer) +from rattail.pyramid.forms import UpcFieldRenderer, PriceFieldRenderer class ProductGrid(GridView): @@ -122,7 +120,7 @@ class ProductGrid(GridView): g = self.make_grid(data, config) g.upc.set(renderer=UpcFieldRenderer) g.regular_price.set(renderer=PriceFieldRenderer) - g.current_price.set(renderer=PriceWithExpirationFieldRenderer) + g.current_price.set(renderer=PriceFieldRenderer) g.configure( include=[ g.upc.label("UPC"), @@ -132,7 +130,7 @@ class ProductGrid(GridView): # g.department, g.subdepartment, g.regular_price.label("Reg. Price"), - g.current_price.label(literal("Cur. Price  (Exp.)")), + g.current_price.label("Cur. Price"), ], readonly=True)