]> git.parisson.com Git - telemeta.git/commitdiff
fix search string when deleting user (fixes #53)
authorGuillaume Pellerin <yomguy@parisson.com>
Tue, 21 Apr 2015 19:56:59 +0000 (21:56 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Tue, 21 Apr 2015 19:56:59 +0000 (21:56 +0200)
telemeta/models/system.py

index a0acde0dd75d5b686ea8c9cf54b862544cf420cb..73ab5551b6c1cf50ef9697be79ae8c983b484cc2 100644 (file)
@@ -124,5 +124,6 @@ class Search(ModelCore):
         ordering = ['-date']
 
     def __unicode__(self):
-        return self.keywords
+        return ' - '.join([self.username.username, unicode(self.date),
+                    ' - '.join([c.key for c in self.criteria.all()])])