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.
This commit is contained in:
parent
7b71359733
commit
033b46b360
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue