Example #1
0
 def __repr__(self):
     return '<City%s%s>' % (
         '' if not self.id else ' #%s' % self.id,
         '' if not self.name else ': %s' % force_str(self.name))
Example #2
0
 def __str__(self):
     return force_str(self.name)