formdef: fix passing of ignore_migration arg

This commit is contained in:
Frédéric Péters 2013-02-25 14:48:13 +01:00 committed by Thomas NOEL
parent b443e1912a
commit aa1d54e622
1 changed files with 2 additions and 2 deletions

View File

@ -248,8 +248,8 @@ class FormDef(StorableObject):
self.workflow_id = None
workflow = property(get_workflow, set_workflow)
def get_by_urlname(cls, url_name):
return cls.get_on_index(url_name, 'url_name')
def get_by_urlname(cls, url_name, ignore_migration=False):
return cls.get_on_index(url_name, 'url_name', ignore_migration=ignore_migration)
get_by_urlname = classmethod(get_by_urlname)
def get_url(self, backoffice = False):