Changeset - 26aa107f393b
[Not reviewed]
0 1 0
Lance Edgar (lance) - 12 years ago 2012-08-10 18:11:01
lance@edbob.org
add repr and unicode to CustomerGroup
1 file changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
rattail/db/extension/model.py
Show inline comments
 
@@ -1047,12 +1047,18 @@ class CustomerGroup(Base):
 
    __tablename__ = 'customer_groups'
 

	
 
    uuid = uuid_column()
 
    id = Column(String(20))
 
    name = Column(String(255))
 

	
 
    def __repr__(self):
 
        return "<CustomerGroup: %s, %s>" % (self.id, self.name)
 

	
 
    def __unicode__(self):
 
        return unicode(self.name or '')
 

	
 

	
 
class CustomerGroupAssignment(Base):
 
    """
 
    Represents the assignment of a :class:`Customer` to a
 
    :class:`CustomerGroup`.
 
    """
0 comments (0 inline, 0 general)