diff --git a/workbench b/workbench index 9fd1eea..c6dc5c1 100755 --- a/workbench +++ b/workbench @@ -319,8 +319,13 @@ def create(): ) # Typed relation with display name fields. - elif field_definitions[custom_field]["field_type"] == "typed_relation_display_name": - typed_relation_display_name_field = workbench_fields.TypedRelationDisplayNameField() + elif ( + field_definitions[custom_field]["field_type"] + == "typed_relation_display_name" + ): + typed_relation_display_name_field = ( + workbench_fields.TypedRelationDisplayNameField() + ) node = typed_relation_display_name_field.create( config, field_definitions, node, row, custom_field ) @@ -808,8 +813,13 @@ def update(): ) # Typed relation display name fields (currently, only taxonomy term). - elif field_definitions[custom_field]["field_type"] == "typed_relation_display_name": - typed_relation_display_name_field = workbench_fields.TypedRelationDisplayNameField() + elif ( + field_definitions[custom_field]["field_type"] + == "typed_relation_display_name" + ): + typed_relation_display_name_field = ( + workbench_fields.TypedRelationDisplayNameField() + ) node = typed_relation_display_name_field.update( config, field_definitions, @@ -1998,8 +2008,13 @@ def update_media() -> None: ) # Typed relation display name fields (currently, only taxonomy term). - elif field_definitions[custom_field]["field_type"] == "typed_relation_display_name": - typed_relation_display_name_field = workbench_fields.TypedRelationDisplayNameField() + elif ( + field_definitions[custom_field]["field_type"] + == "typed_relation_display_name" + ): + typed_relation_display_name_field = ( + workbench_fields.TypedRelationDisplayNameField() + ) patch_request_json = typed_relation_display_name_field.update( config, field_definitions, @@ -3271,8 +3286,13 @@ def update_terms(): ) # Typed relation display name fields (currently, only taxonomy term). - elif field_definitions[custom_field]["field_type"] == "typed_relation_display_name": - typed_relation_display_name_field = workbench_fields.TypedRelationDisplaynameField() + elif ( + field_definitions[custom_field]["field_type"] + == "typed_relation_display_name" + ): + typed_relation_display_name_field = ( + workbench_fields.TypedRelationDisplaynameField() + ) term = typed_relation_display_name_field.update( config, field_definitions,