OBS:Run migrations! Changed the comms.Msg.db_title field to db_header to better reflect its use.

This commit is contained in:
Griatch 2012-11-04 15:37:06 +01:00
parent a4a50fdb87
commit f3b50a20a8
5 changed files with 206 additions and 65 deletions

View file

@ -231,7 +231,7 @@ class MsgManager(models.Manager):
receiver_restrict = Q()
# filter by full text
if freetext:
fulltext_restrict = Q(db_title__icontains=freetext) | Q(db_message__icontains=freetext)
fulltext_restrict = Q(db_header__icontains=freetext) | Q(db_message__icontains=freetext)
else:
fulltext_restrict = Q()
# execute the query