0001-fields-do-not-allow-adding-computed-data-field-to-wo.patch
wcs/fields.py | ||
---|---|---|
3476 | 3476 |
non_widgets.append((klass.key, klass.description, klass.key)) |
3477 | 3477 |
options = widgets + [('', '—', '')] + non_widgets |
3478 | 3478 | |
3479 |
# add computed field in its own "section" |
|
3480 |
options.extend([('', '—', ''), (ComputedField.key, ComputedField.description, ComputedField.key)]) |
|
3479 |
if 'computed' not in blacklisted_types: |
|
3480 |
# add computed field in its own "section" |
|
3481 |
options.extend([('', '—', ''), (ComputedField.key, ComputedField.description, ComputedField.key)]) |
|
3481 | 3482 | |
3482 | 3483 |
if get_publisher().has_site_option('fields-blocks') and ( |
3483 | 3484 |
not blacklisted_types or 'blocks' not in blacklisted_types |
3484 |
- |