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
"""
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)