fix edit.___unicode__

This commit is contained in:
j 2013-07-22 17:37:57 +00:00
parent 117d2a504d
commit 84db62b6ec

View file

@ -47,7 +47,7 @@ class Edit(models.Model):
subscribed_users = models.ManyToManyField(User, related_name='subscribed_edits') subscribed_users = models.ManyToManyField(User, related_name='subscribed_edits')
def __unicode__(self): def __unicode__(self):
return u'%s (%s)' % (self.title, self.user) return u'%s (%s)' % (self.name, self.user)
def get_id(self): def get_id(self):
return u'%s:%s' % (self.user.username, self.name) return u'%s:%s' % (self.user.username, self.name)