fix crdb support by casting uuid
Postgres seems to happily take in and automatically cast uuid type values into varchar columns. This is not the case with cockroachdb.master
parent
7b71359733
commit
033b46b360
|
@ -82,7 +82,7 @@ def client_create():
|
|||
|
||||
if form.validate_on_submit():
|
||||
client = Client()
|
||||
client.client_id = uuid.uuid4()
|
||||
client.client_id = str(uuid.uuid4())
|
||||
client.client_secret = generate_token()
|
||||
client.owner_id = current_user.get_user_id()
|
||||
client.set_client_metadata(form.data)
|
||||
|
|
Loading…
Reference in New Issue