From 0a85bc2ba69d22473c75ffb00064f1f554d64b5a Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 6 Sep 2012 13:22:02 -0500 Subject: [PATCH] fix GPCFieldRenderer --- rattail/pyramid/forms.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rattail/pyramid/forms.py b/rattail/pyramid/forms.py index f0f23e74..b0d2b067 100644 --- a/rattail/pyramid/forms.py +++ b/rattail/pyramid/forms.py @@ -33,17 +33,18 @@ import formalchemy from edbob.pyramid.forms import pretty_datetime import rattail +from rattail.gpc import GPC class GPCFieldRenderer(formalchemy.TextFieldRenderer): """ - Renderer for :class:`rattail.barcodes.GPC` fields. + Renderer for :class:`rattail.gpc.GPC` fields. """ @property def length(self): # Hm, should maybe consider hard-coding this...? - return len(str(rattail.GPC(0))) + return len(str(GPC(0))) class PriceFieldRenderer(formalchemy.FieldRenderer):