Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 391bc3b

Browse files
slivercPUREMATH
andauthored
Code simplification
Co-Authored-By: puremath <puremath@users.noreply.github.com>
1 parent 38812cc commit 391bc3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎rest_framework_json_api/renderers.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ def render(self, data, accepted_media_type=None, renderer_context=None):
652652
for object in objects:
653653
obj_type = object.get('type')
654654
obj_id = object.get('id')
655-
if obj_type in included_cache.keys() and \
655+
if obj_type in included_cache and \
656656
obj_id in included_cache[obj_type]:
657657
del included_cache[obj_type][obj_id]
658658
if not included_cache[obj_type]:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /