What is the recommended idiom for checking whether a query returned any results? Example:
orgs = Organisation.objects.filter(name__iexact = \'Fjuk inc\')
To check the emptiness of a queryset:
if orgs.exists(): # Do something
or you can check for a the first item in a queryset, if it doesn't exist it will return None:
None
if orgs.first(): # Do something