File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77from django .db .models import signals , Q
88
99from ietf .utils .mail import send_mail
10- from redesign .doc .models import Document , DocEvent
11- from redesign .group .models import Group , Role
10+ from ietf .doc .models import Document , DocEvent
11+ from ietf .group .models import Group , Role
1212
1313from ietf .community .rules import TYPES_OF_RULES , RuleManager
1414from ietf .community .display import (TYPES_OF_SORT , DisplayField ,
Original file line number Diff line number Diff line change 11from django .db .models import Q
22
3- from ietf .community .utils import get_documents_with
4-
53from ietf .doc .models import Document
64from ietf .group .models import Group
75from ietf .person .models import Person
@@ -130,10 +128,10 @@ def get_documents(self):
130128
131129class WithTextRule (RuleManager ):
132130 codename = 'with_text'
133- description = 'All I-Ds that contain a particular text string'
131+ description = 'All I-Ds that contain a particular text string in the name '
134132
135133 def get_documents (self ):
136- return get_documents_with ( self .value ).distinct ()
134+ return Document . objects . filter ( type__name = 'Draft' ). filter ( name__icontains = self .value ).distinct ()
137135
138136
139137TYPES_OF_RULES = [(i .codename , i .description ) for i in RuleManager .__subclasses__ ()]
You can’t perform that action at this time.
0 commit comments