code: def allow(self, comment, content_object, request):
          
          # Tests for cookie:
          if settings.COOKIE_KEY not in request.COOKIES \
              and (settings.DISCARD_SPAM or settings.DISCARD_NO_COOKIE):
                  return False
          elif settings.COOKIE_KEY not in request.COOKIES:
              comment.is_removed = True
              comment.is_public = False
              return True
          return True
docs: Tests comment post requests for the djangospam cookie.