code: def validate(self, value):
          
  
          query = Query(sql=value)
  
          passes_blacklist, failing_words = query.passes_blacklist()
  
          error = MSG_FAILED_BLACKLIST % ', '.join(failing_words) if not passes_blacklist else None
  
          if error:
              raise ValidationError(
                  error,
                  code="InvalidSql"
              )
docs: Ensure that the SQL passes the blacklist.
  
          :param value: The SQL for this Query model.