0001-workflows-exclude-prefill-display-option-from-workfl.patch
wcs/admin/workflows.py | ||
---|---|---|
937 | 937 | |
938 | 938 |
class WorkflowVariablesFieldDefPage(FieldDefPage): |
939 | 939 |
section = 'workflows' |
940 |
blacklisted_attributes = ['condition'] |
|
940 |
blacklisted_attributes = ['condition', 'prefill', 'display_locations']
|
|
941 | 941 | |
942 | 942 |
def form(self): |
943 | 943 |
form = super().form() |
... | ... | |
951 | 951 |
required=True, |
952 | 952 |
workflow=self.objectdef.workflow, |
953 | 953 |
) |
954 |
display_locations = form.get_widget('display_locations') |
|
955 |
if display_locations: |
|
956 |
# remove validation page from choices |
|
957 |
display_locations.options = display_locations.options[1:] |
|
958 | 954 |
return form |
959 | 955 | |
960 | 956 | |
961 |
- |