1👍
✅
How to select all building with no Rate?
You can do this using isnull
condition as
Building.objects.filter(rate__isnull=True).order_by('customer__last_name')
0👍
How about:
buildings_without_rate= Building.objects.filter(rate=None).order_by(...)
?
- [Answer]-Django tries to read from wrong DB table
- [Answer]-How to check for a ForeignKey that no longer exists?
- [Answer]-Django – Getting/Saving large objects takes a lot of time
- [Answer]-Id of created resource not in response header
- [Answer]-Get the fractional part of a float number in django template
Source:stackexchange.com