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