QuerySet.first() gives me unexpected result.

13 views
Skip to first unread message

Aldian Fazrihady

unread,
Nov 22, 2019, 9:31:27 PM11/22/19
to django...@googlegroups.com
Django Users,

Can you tell me if this is bug in django or not:
Screenshot from 2019-11-23 09-21-29.png

The fact that `x.get()` doesn't throw exception tell me that QuerySet only have one element in it.
However, `x.first()` gives me different result on `price_per_kg` field. Instead of giving me the expected `12000`, it gives me `15000`.
--
Regards,

Reply all
Reply to author
Forward
0 new messages