How to break “for loop” after 1 iteration in Django template July 14, 2023 by Tarik I think you should use slice to achieve your goal {% for account in object_list|slice:":1" %}