Skip to content

Commit

Permalink
Minor name change
Browse files Browse the repository at this point in the history
  • Loading branch information
banesullivan committed Apr 10, 2022
1 parent 7120bd0 commit fd2e555
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions django_large_image/rest/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ def get_path(self, request: Request, pk: int = None):
raise NotImplementedError('You must implement `get_path` on your viewset.')

def get_style(self, request: Request):
data = utilities.get_request_body_as_dict(request)
# Check if sytle is in request data
if 'style' in data:
style = data['style']
body = utilities.get_request_body_as_dict(request)
# Check if sytle is in request body
if 'style' in body:
style = body['style']
if isinstance(style, dict):
style = json.dumps(style)
# else, fallback to supported query parameters
Expand Down

0 comments on commit fd2e555

Please sign in to comment.