In django template I am looping model on following way:
{% for image in image%}
{{image.image.url}}
{% endfor %}
Here I want to get the image where,
image model has featured_image Boolean option. Here while looping, I want to loop the image which has featured_image=True first and then rest of the images.
How can I do this with single for loop?
This way did not work:
image= ProductGallery.objects.filter(products=product).order_by(is_featured=True)