remove expiration date from current price field (products grid)

This commit is contained in:
Lance Edgar 2012-08-03 14:56:46 -07:00
parent 990556e76b
commit 84b1eec937

View file

@ -26,7 +26,6 @@
``rattail.pyramid.views.products`` -- Product Views ``rattail.pyramid.views.products`` -- Product Views
""" """
from webhelpers.html import literal
from webhelpers.html.tags import link_to from webhelpers.html.tags import link_to
from sqlalchemy.orm import joinedload from sqlalchemy.orm import joinedload
@ -41,8 +40,7 @@ from edbob.pyramid import Session
import rattail import rattail
import rattail.labels import rattail.labels
from rattail.pyramid.forms import (UpcFieldRenderer, PriceFieldRenderer, from rattail.pyramid.forms import UpcFieldRenderer, PriceFieldRenderer
PriceWithExpirationFieldRenderer)
class ProductGrid(GridView): class ProductGrid(GridView):
@ -122,7 +120,7 @@ class ProductGrid(GridView):
g = self.make_grid(data, config) g = self.make_grid(data, config)
g.upc.set(renderer=UpcFieldRenderer) g.upc.set(renderer=UpcFieldRenderer)
g.regular_price.set(renderer=PriceFieldRenderer) g.regular_price.set(renderer=PriceFieldRenderer)
g.current_price.set(renderer=PriceWithExpirationFieldRenderer) g.current_price.set(renderer=PriceFieldRenderer)
g.configure( g.configure(
include=[ include=[
g.upc.label("UPC"), g.upc.label("UPC"),
@ -132,7 +130,7 @@ class ProductGrid(GridView):
# g.department, # g.department,
g.subdepartment, g.subdepartment,
g.regular_price.label("Reg. Price"), g.regular_price.label("Reg. Price"),
g.current_price.label(literal("Cur. Price  (Exp.)")), g.current_price.label("Cur. Price"),
], ],
readonly=True) readonly=True)