Skip to content

[pull] main from django:main - #530

Merged
pull[bot] merged 2 commits into
threatcode:mainfrom
django:main
Aug 12, 2026
Merged

[pull] main from django:main#530
pull[bot] merged 2 commits into
threatcode:mainfrom
django:main

Conversation

@pull

@pull pull Bot commented Aug 12, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

jacobtylerwalls and others added 2 commits August 11, 2026 17:13
Co-authored-by: Adam Johnson <me@adamj.eu>
…in popups.

`ModelAdmin.response_add()` unpacked the `_source_model` `POST` parameter with
`source_model_name.split(".", 1)` before any error handling, so a value
without a dot separator, like `_source_model=foo`, raised `ValueError` and
returned an HTTP 500 after the object had already been saved.

This fix handles the `ValueError` together with the existing `LookupError` branch for invalid values.

Follow-up to b1ffa9a.
@pull pull Bot locked and limited conversation to collaborators Aug 12, 2026
@pull pull Bot added the ⤵️ pull label Aug 12, 2026
@pull
pull Bot merged commit 616e8c5 into threatcode:main Aug 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants