Fix an error in the Close Template tag (django)