small fixes
This commit is contained in:
@@ -254,7 +254,7 @@ class CategoryTagAutocomplete(autocomplete.Select2QuerySetView):
|
||||
def purchase_email(request):
|
||||
"""Notify coop manager and user about item purchase
|
||||
"""
|
||||
data = json.loads(request.body)
|
||||
data = request.data
|
||||
# check data
|
||||
if request.user.is_anonymous and 'email' not in data:
|
||||
return Response({"error": "Anonymous users must include an email parameter value"}, status=status.HTTP_406_NOT_ACCEPTABLE)
|
||||
|
||||
Reference in New Issue
Block a user