Skip to content

Commit

Permalink
Merge pull request #12 from patroqueeet/master
Browse files Browse the repository at this point in the history
get_response must be executable
  • Loading branch information
alexandernst authored Feb 1, 2023
2 parents 6eeddfb + 6df92fc commit cc6b1c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion django_walletpass/classviews.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ def retrieve(self, request, pass_type_id, serial_number):
response['Content-Disposition'] = 'attachment; filename=pass.pkpass'

response['Last-Modified'] = http_date(timegm(pass_.updated_at.utctimetuple()))
return ConditionalGetMiddleware(get_response=response)(request)

def _get_response(request):
return response

return ConditionalGetMiddleware(get_response=_get_response)(request)


# TODO: use ModelViewSet
Expand Down

0 comments on commit cc6b1c8

Please sign in to comment.