def __unicode__(self):
    return '{0} {1}'.format(self.foo, self.bar)

@property
def details(self):
    return repr(dict(foo=self.foo, bar=self.bar, baz=self.baz))
Django: String representation of models