From 12079a5612be8c13bea383bdbea10eb8bdd14507 Mon Sep 17 00:00:00 2001 From: Ole Laursen Date: Fri, 13 May 2016 13:22:53 +0000 Subject: [PATCH] Add SearchRule.__unicode__ for debugging purposes - Legacy-Id: 11187 --- ietf/community/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ietf/community/models.py b/ietf/community/models.py index 3f7268a5c..ed7238a6c 100644 --- a/ietf/community/models.py +++ b/ietf/community/models.py @@ -74,6 +74,8 @@ class SearchRule(models.Model): # when new documents are submitted name_contains_index = models.ManyToManyField(Document) + def __unicode__(self): + return "%s %s %s/%s/%s/%s" % (self.community_list, self.rule_type, self.state, self.group, self.person, self.text) class EmailSubscription(models.Model): community_list = models.ForeignKey(CommunityList)