silly bug in autocomplete fixed
This commit is contained in:
parent
c4616f1ad9
commit
6cd0b65fe8
|
@ -72,7 +72,7 @@ class ItfModel(models.Model):
|
||||||
d = self.list_dict()
|
d = self.list_dict()
|
||||||
d['text'] = self.get_text()
|
d['text'] = self.get_text()
|
||||||
if not d['text']:
|
if not d['text']:
|
||||||
return ''
|
d['text'] = ''
|
||||||
if len(d['text']) > 150:
|
if len(d['text']) > 150:
|
||||||
d['text'] = d['text'][:150] + "..."
|
d['text'] = d['text'][:150] + "..."
|
||||||
return d
|
return d
|
||||||
|
|
|
@ -291,6 +291,9 @@ class TheatreGroup(ItfModel):
|
||||||
'about': self.about,
|
'about': self.about,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def get_title(self):
|
||||||
|
return self.__unicode__()
|
||||||
|
|
||||||
class PersonGroup(models.Model):
|
class PersonGroup(models.Model):
|
||||||
person = models.ForeignKey(Person, db_index=True)
|
person = models.ForeignKey(Person, db_index=True)
|
||||||
group = models.ForeignKey(TheatreGroup, db_index=True)
|
group = models.ForeignKey(TheatreGroup, db_index=True)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user