Added a one off command to add many invited user to a service.

It would be nice to add something that can do this from the Admin app.
This commit is contained in:
Rebecca Law
2018-06-28 17:09:45 +01:00
parent 17a971cb77
commit 213e32cf6d
2 changed files with 49 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
import json
from flask import (
Blueprint,
request,
@@ -24,6 +26,8 @@ register_errors(invite)
@invite.route('', methods=['POST'])
def create_invited_user(service_id):
request_json = request.get_json()
# request_json = request.data
print(request_json)
invited_user, errors = invited_user_schema.load(request_json)
save_invited_user(invited_user)