| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 497270d commit 267cd42
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -371,7 +371,7 @@ def __init__( | |||
| 371 | 371 | ModelMetaclass.__init__(cls, classname, bases, dict_, **kw) | |
| 372 | 372 | ||
| 373 | 373 | ||
| 374 | - def get_sqlachemy_type(field: ModelField) -> Any: | ||
| 374 | + def get_sqlalchemy_type(field: ModelField) -> Any: | ||
| 375 | 375 | if issubclass(field.type_, str): | |
| 376 | 376 | if field.field_info.max_length: | |
| 377 | 377 | return AutoString(length=field.field_info.max_length) | |
@@ -418,7 +418,7 @@ def get_column_from_field(field: ModelField) -> Column: # type: ignore | |||
| 418 | 418 | sa_column = getattr(field.field_info, "sa_column", Undefined) | |
| 419 | 419 | if isinstance(sa_column, Column): | |
| 420 | 420 | return sa_column | |
| 421 | - sa_type = get_sqlachemy_type(field) | ||
| 421 | + sa_type = get_sqlalchemy_type(field) | ||
| 422 | 422 | primary_key = getattr(field.field_info, "primary_key", False) | |
| 423 | 423 | index = getattr(field.field_info, "index", Undefined) | |
| 424 | 424 | if index is Undefined: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments