You are on page 1of 1

Queryset

customers = customer.objects.( hhh )


return
.all() #all customers
.first() #first customer
.last() #last customer
.get(name='ahmed') #single customer by name
.get(id = 4)#single customer by id
.all().order_by('id') #sort customers by id
.filter(tags__name='sport') #return products with the sport tag

You might also like