I want to make django query based on function input.I don't want to check input with if and else in 2 separate line and then make query like this:
def customer_number(mall,store=None):
if store :
customer = models.Customer.objects.filter(mall=mall,store=store)
else :
customer = models.Customer.objects.filter(mall=mall)
return customer.count