'Create an object given a text after checking permissions.'

def post(self, request):

    if (not self.has_add_permission(request)):
        return http.HttpResponseForbidden()
    if (not self.create_field):
        raise ImproperlyConfigured('Missing    "create_field"')
    text = request.POST.get('text')
    if (text is None):
        return http.HttpResponseBadRequest()
    result = self.create_object(text)
    if result:
        return http.JsonResponse({'id': result.pk, 'text': six.text_type(result)})
    return http.JsonResponse({'status': 'false', 'message': 'Skills    can    only    contain    latin    characters    and    +.:-.'}, status=449)
