0001-backoffice-don-t-let-new-forms-be-created-when-welco.patch
wcs/backoffice/submission.py | ||
---|---|---|
196 | 196 |
cats.append(misc_cat) |
197 | 197 | |
198 | 198 |
r = TemplateIO(html=True) |
199 |
for mode in ['empty', 'create', 'existing']: |
|
199 |
modes = ['empty', 'create', 'existing'] |
|
200 |
if get_publisher().get_site_option('welco_url', 'variables'): |
|
201 |
modes.remove('create') |
|
202 |
for mode in modes: |
|
200 | 203 |
list_content = TemplateIO() |
201 | 204 |
for cat in cats: |
202 | 205 |
if not cat.formdefs: |
203 |
- |