Skip to content

Commit d38f4a4

Browse files
committed
Avoid fetching unused dictionary key
1 parent 478666a commit d38f4a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cbv/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def _key(a: KlassAttribute) -> int:
176176
return -1
177177

178178
# Find overridden attributes
179-
for name, klass_attributes in attribute_names.items():
179+
for klass_attributes in attribute_names.values():
180180
# Skip if we have only one attribute.
181181
if len(klass_attributes) == 1:
182182
continue

0 commit comments

Comments
 (0)