* cc: Hasan Ramezani (added)
* type: Bug => Cleanup/optimization
* easy: 0 => 1
* stage: Unreviewed => Accepted
Comment:
`get()` with filters is unsupported, see
[https://docs.djangoproject.com/en/stable/ref/models/querysets/#union
documentation]:
> In addition, only LIMIT, OFFSET, COUNT(*), ORDER BY, and specifying
columns (i.e. slicing, count(), order_by(), and values()/values_list())
are allowed on the resulting QuerySet.
but I agree that we should raise a descriptive error for `get(...)` (see
related #27995, #31148).
--
Ticket URL: <https://code.djangoproject.com/ticket/32068#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.