fix GPCFieldRenderer
This commit is contained in:
parent
cf10fe19e8
commit
0a85bc2ba6
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue