Comment (by Steven Mapes):
Replying to [comment:3 Mariusz Felisiak]:
> Thanks for the report, however this behavior was intentionally changed
in 7ba6ebe9149ae38257d70100e8bfbfd0da189862 and it's documented in release
notes. Previously an empty queryset was implicitly returned for unsaved
instances now you need to protect your code and check `self.instance.pk`.
>
> There is no change in the `ModelForm` behavior, `self.instance` was
always set.
Ah yes I missed that entry in the release notes when I was checking.
Sorry about that
--
Ticket URL: <https://code.djangoproject.com/ticket/34084#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.