* status: new => closed
* resolution: => invalid
Comment:
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.
--
Ticket URL: <https://code.djangoproject.com/ticket/34084#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.