models: change Announce.__unicode__ to return only the announce id
This commit is contained in:
parent
88e535657a
commit
750f3262e3
|
@ -323,7 +323,7 @@ class Annonce(GisModel):
|
|||
return ETATS_ANNONCE[self.etat_validation]
|
||||
|
||||
def __unicode__(self):
|
||||
return u'{0} {1}'.format(self.id, self.statut())
|
||||
return unicode(self.id)
|
||||
|
||||
class Meta:
|
||||
verbose_name = _(u'Annonce')
|
||||
|
|
Reference in New Issue