Skip to content

Commit 12079a5

Browse files
committed
Add SearchRule.__unicode__ for debugging purposes
- Legacy-Id: 11187
1 parent 5f4c989 commit 12079a5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ietf/community/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ class SearchRule(models.Model):
7474
# when new documents are submitted
7575
name_contains_index = models.ManyToManyField(Document)
7676

77+
def __unicode__(self):
78+
return "%s %s %s/%s/%s/%s" % (self.community_list, self.rule_type, self.state, self.group, self.person, self.text)
7779

7880
class EmailSubscription(models.Model):
7981
community_list = models.ForeignKey(CommunityList)

0 commit comments

Comments
 (0)