From 26aa107f393bc49edf30c8fd2aab78e1c7595ad2 2012-08-10 18:11:01 From: Lance Edgar Date: 2012-08-10 18:11:01 Subject: [PATCH] add repr and unicode to CustomerGroup --- diff --git a/rattail/db/extension/model.py b/rattail/db/extension/model.py index 90907a793176484c3d0ccbe40729ff07f2358bbe..ae97b240874f5e4559170f608e639307aff476e3 100644 --- a/rattail/db/extension/model.py +++ b/rattail/db/extension/model.py @@ -1050,6 +1050,12 @@ class CustomerGroup(Base): id = Column(String(20)) name = Column(String(255)) + def __repr__(self): + return "" % (self.id, self.name) + + def __unicode__(self): + return unicode(self.name or '') + class CustomerGroupAssignment(Base): """