Metadata set model doesn't have a name field, not use it to calculate the unicode representation

This commit is contained in:
Roberto Rosario
2011-08-15 03:57:04 -04:00
parent c2a5b2732d
commit 00fe7ca273

View File

@@ -40,7 +40,7 @@ class MetadataSet(models.Model):
title = models.CharField(max_length=48, verbose_name=_(u'title'))
def __unicode__(self):
return self.title if self.title else self.name
return self.title
class Meta:
ordering = ('title',)