def akismet_check(self): fields = {} for key, value in self.akismet_fields.items(): fields[key] = self.cleaned_data[value] return utils.akismet_check(self._request, akismet_api_key=self.akismet_api_key, **fields)