mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-09-21 21:15:13 +00:00
Fix gen model and schema template formatting (#356)
* Fix gen model column default value * Update gen templates and schema_name storage * Fix lint
This commit is contained in:
@@ -11,9 +11,10 @@ class GenTemplate:
|
||||
def __init__(self):
|
||||
self.env = Environment(
|
||||
loader=FileSystemLoader(JINJA2_TEMPLATE_DIR),
|
||||
autoescape=select_autoescape(['html', 'xml', 'jinja']),
|
||||
autoescape=select_autoescape(enabled_extensions=['jinja']),
|
||||
trim_blocks=True,
|
||||
lstrip_blocks=True,
|
||||
keep_trailing_newline=True,
|
||||
enable_async=True,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user