Skip to content

Commit 6f40328

Browse files
committed
Fixing pylint
1 parent 6a90373 commit 6f40328

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/concepts/views.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,9 @@ def delete(self, request, *args, **kwargs):
714714
resource_instance = self.get_resource_object()
715715
new_version = resource_instance.clone()
716716
subject_label_attr = f"cloned_{self.parent_list_attribute}"
717-
labels = [name.clone() for name in getattr(resource_instance, self.parent_list_attribute).exclude(id=instance.id)]
717+
labels = [
718+
name.clone() for name in getattr(resource_instance, self.parent_list_attribute).exclude(id=instance.id)
719+
]
718720
setattr(new_version, subject_label_attr, labels)
719721
new_version.comment = f'Deleted {instance.name} in {self.parent_list_attribute}.'
720722
errors = new_version.save_as_new_version(request.user)

0 commit comments

Comments
 (0)