def transfer_enabled(self): from django_transfer import is_enabled return is_enabled() and self.transfer_dir