Skip to content

Commit fdff56b

Browse files
committed
New schema models have moved from redesign/ to ietf/; fix community sources accordingly.
- Legacy-Id: 4525
1 parent 822f9cf commit fdff56b

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

ietf/community/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
from django.db.models import signals, Q
88

99
from 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

1313
from ietf.community.rules import TYPES_OF_RULES, RuleManager
1414
from ietf.community.display import (TYPES_OF_SORT, DisplayField,

ietf/community/rules.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
from django.db.models import Q
22

3-
from ietf.community.utils import get_documents_with
4-
53
from ietf.doc.models import Document
64
from ietf.group.models import Group
75
from ietf.person.models import Person
@@ -130,10 +128,10 @@ def get_documents(self):
130128

131129
class 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

139137
TYPES_OF_RULES = [(i.codename, i.description) for i in RuleManager.__subclasses__()]

0 commit comments

Comments
 (0)