More again again again again. Moving ID random generation to the SQL db instead. General clean up.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
from __future__ import annotations
|
||||
import datetime, hashlib, logging, os, pytz, redis, secrets
|
||||
|
||||
from typing import Dict, List, Optional, Set, Union
|
||||
@@ -19,7 +18,6 @@ class Account_Cfg_Base(BaseModel):
|
||||
id_random: Optional[str] = Field(
|
||||
**base_fields['account_cfg_id_random'],
|
||||
alias = 'account_cfg_id_random',
|
||||
default_factory = lambda:secrets.token_urlsafe(default_num_bytes),
|
||||
)
|
||||
id: Optional[int] = Field(
|
||||
alias = 'account_cfg_id'
|
||||
@@ -146,5 +144,3 @@ class Account_Cfg_Base(BaseModel):
|
||||
underscore_attrs_are_private = True
|
||||
allow_population_by_field_name = True
|
||||
fields = base_fields
|
||||
|
||||
#Account_Cfg_Base.update_forward_refs()
|
||||
|
||||
Reference in New Issue
Block a user