fix condition to disabled client in django