Fix Django template comparison