fix: add missing ai_models context to all render_template calls
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
Two render_template calls were missing ai_models/default_ai_model causing UndefinedError on template render (500 error). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ce8bb1109f
commit
9dfcf1f63c
@ -173,8 +173,8 @@ def social_publisher_new():
|
||||
|
||||
return render_template('admin/social_publisher_form.html',
|
||||
post=None, companies=companies, events=events,
|
||||
post_types=POST_TYPES, post_tones=POST_TONES,
|
||||
default_tone=DEFAULT_TONE,
|
||||
post_types=POST_TYPES, post_tones=POST_TONES, default_tone=DEFAULT_TONE,
|
||||
ai_models=AI_MODELS, default_ai_model=DEFAULT_AI_MODEL,
|
||||
configured_companies=configured_companies)
|
||||
finally:
|
||||
db.close()
|
||||
@ -256,8 +256,8 @@ def social_publisher_edit(post_id):
|
||||
|
||||
return render_template('admin/social_publisher_form.html',
|
||||
post=post, companies=companies, events=events,
|
||||
post_types=POST_TYPES, post_tones=POST_TONES,
|
||||
default_tone=DEFAULT_TONE,
|
||||
post_types=POST_TYPES, post_tones=POST_TONES, default_tone=DEFAULT_TONE,
|
||||
ai_models=AI_MODELS, default_ai_model=DEFAULT_AI_MODEL,
|
||||
configured_companies=configured_companies)
|
||||
finally:
|
||||
db.close()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user