78c78,80 < if not hasattr(cls, 'application_type'): --- > if (not hasattr(cls, 'application_type') > or cls.application_type == None > or cls.application_type == 'external'):