Hotfix: Fix client create#894
Conversation
There was a problem hiding this comment.
Pull request overview
Fixes a server error (500) when submitting the ClientCreate form with an incomplete “Point of Contact” formset by ensuring the CreateView’s self.object is initialized, allowing the invalid form re-render path to build context correctly.
Changes:
- Initialize
self.object = NoneinClientCreate.get()andClientCreate.post()to preventAttributeErrorduringform_invalid(). - Add a regression test that posts an incomplete PoC formset and asserts required-field errors are rendered (HTTP 200) and no client is created.
- Bump version metadata to 6.3.6 and add a changelog entry for the fix.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
VERSION |
Bumps release version/date to 6.3.6 / 26 May 2026. |
config/settings/base.py |
Updates __version__ and RELEASE_DATE constants. |
CHANGELOG.md |
Documents the hotfix under 6.3.6 (Fixes #889). |
ghostwriter/rolodex/views.py |
Prevents 500 on invalid create by setting self.object = None in GET/POST. |
ghostwriter/rolodex/tests/test_views.py |
Adds regression coverage for incomplete PoC submission during client creation. |
🤖 Augment PR SummarySummary: Hotfixes client creation when an incomplete Point of Contact (PoC) submission would previously trigger a server error. Changes:
🤖 Was this summary useful? React with 👍 or 👎 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #894 +/- ##
==========================================
+ Coverage 93.20% 93.32% +0.12%
==========================================
Files 393 393
Lines 25046 25063 +17
==========================================
+ Hits 23344 23391 +47
+ Misses 1702 1672 -30 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
CHANGELOG
[6.3.6] - 26 May 2026
Fixed