Comment Comment by Chiron1991 Or simply use Django's builtin mechanism for that instead of poorly reimplementing it: https://docs.djangoproject.com/en/4.1/ref/templates/builtins... parent Chiron1991 4 years ago