use is_draft() to determine if a formdata is a draft
This commit is contained in:
parent
398e6f351e
commit
0770d400df
|
@ -74,7 +74,7 @@ class FormsRootDirectory(wcs.forms.root.RootDirectory):
|
|||
def user_forms [html] (self, user_forms):
|
||||
base_url = get_publisher().get_root_url()
|
||||
|
||||
draft = [x for x in user_forms if x.status == 'draft']
|
||||
draft = [x for x in user_forms if x.is_draft()]
|
||||
if draft:
|
||||
'<h4 id="drafts">%s</h4>' % _('My Current Drafts')
|
||||
'<ul>'
|
||||
|
|
Reference in New Issue