File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed 
fastapi_users_db_dynamodb Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 3939class  DynamoDBBaseUserTable (BaseModel , Generic [ID ]):
4040    """Base user table schema for DynamoDB.""" 
4141
42-     model_config  =  ConfigDict (arbitrary_types_allowed = True )
42+     model_config  =  ConfigDict (arbitrary_types_allowed = True ,  from_attributes = True )
4343
4444    __tablename__  =  "user" 
4545
Original file line number Diff line number Diff line change 2626class  DynamoDBBaseAccessTokenTable (BaseModel , Generic [ID ]):
2727    """Base access token table schema for DynamoDB.""" 
2828
29-     model_config  =  ConfigDict (arbitrary_types_allowed = True )
29+     model_config  =  ConfigDict (arbitrary_types_allowed = True ,  from_attributes = True )
3030
3131    __tablename__  =  "accesstoken" 
3232
Original file line number Diff line number Diff line change 1818
1919
2020class  Base (BaseModel ):
21-     model_config  =  ConfigDict (arbitrary_types_allowed = True )
21+     model_config  =  ConfigDict (arbitrary_types_allowed = True ,  from_attributes = True )
2222
2323
2424class  User (DynamoDBBaseUserTableUUID , Base ):
2525    first_name : str  |  None  =  Field (default = None , description = "First name of the user" )
2626
2727
28- class  OAuthBase :
29-     pass 
28+ class  OAuthBase ( BaseModel ) :
29+     model_config   =   ConfigDict ( arbitrary_types_allowed = True ,  from_attributes = True ) 
3030
3131
3232class  OAuthAccount (DynamoDBBaseOAuthAccountTableUUID , OAuthBase ):
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments