def query2str(items, max_length=1024):

    return '\n'.join(['%s=%s' % (k, v) for k, v in six.iteritems(items)
                      if k != PASSWORD_FORM_FIELD][:int(max_length/2)])[:max_length]
Respond to a POST request by creating a comment.
dataset/ETHPy150Open django-pci/django-axes/axes/decorators.py/query2str--crossover with--dataset/ETHPy150Open ExCiteS/geokey/geokey/contributions/views/comments.py/CommentAbstractAPIView.create_and_respond