Improve performance of many document list pages

- Legacy-Id: 17505
This commit is contained in:
Russ Housley 2020-03-22 16:26:43 +00:00
parent 53de5047b3
commit 36fdc2dd5f

View file

@ -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]