Improve performance of many document list pages
- Legacy-Id: 17505
This commit is contained in:
parent
53de5047b3
commit
36fdc2dd5f
|
@ -28,7 +28,6 @@ def expirable_draft(draft):
|
|||
two functions need to be kept in sync."""
|
||||
if draft.type_id != 'draft':
|
||||
return False
|
||||
log.assertion('draft.get_state_slug("draft-iesg")')
|
||||
return bool(expirable_drafts(Document.objects.filter(pk=draft.pk)))
|
||||
|
||||
nonexpirable_states = [] # type: List[State]
|
||||
|
|
Loading…
Reference in a new issue