def METHOD_NAME(self, request, *args, **kwargs):
    form = self.form_class(request.POST)
    if form.is_valid():
        artifacttype = form.save(commit=False)
        artifacttype.save()
        artifacttype.logger(str(request.user), " ARTIFACTTYPE_ADD_POPUP_EXECUTED")
        messages.success(request, 'Artifacttype added')
        return HttpResponse(
            '<script type="text/javascript">window.close();</script>'
        )
    else:
        return render(
            request,
            self.template_name,
            {
                'form': form,
                'title': 'Add',
                'object_type': 'artifacttype',
            },
        )