refactor: minor changes
This commit is contained in:
@@ -14,7 +14,7 @@ class Clinic(ClinicBase):
|
||||
status: ClinicStatus
|
||||
|
||||
class Config:
|
||||
orm_mode = True
|
||||
from_attributes = True
|
||||
|
||||
|
||||
class ClinicDoctorResponse(ClinicDoctorBase):
|
||||
@@ -43,9 +43,8 @@ class UserResponse(UserBase):
|
||||
created_clinics: Optional[List[Clinic]] = None
|
||||
|
||||
class Config:
|
||||
orm_mode = True
|
||||
from_attributes = True
|
||||
allow_population_by_field_name = True
|
||||
populate_by_name = True
|
||||
|
||||
|
||||
class Doctor(DoctorBase):
|
||||
|
||||
Reference in New Issue
Block a user