auquo-dont-count-drafts.diff
extra/modules/backoffice.ptl | ||
---|---|---|
30 | 30 | |
31 | 31 |
def append_form_entry(formdef): |
32 | 32 |
formdef_data_class = formdef.data_class() |
33 |
count_forms = formdef_data_class.count() |
|
33 |
count_forms = formdef_data_class.count() - len(formdef_data_class.get_ids_with_indexed_value('status', 'draft'))
|
|
34 | 34 |
if formdef.workflow: |
35 | 35 |
not_endpoint_status = formdef.workflow.get_not_endpoint_status() |
36 | 36 |
not_endpoint_status_ids = ['wf-%s' % x.id for x in not_endpoint_status] |