code: def lostitem_add_view(request):
      
      if request.method == "POST":
          form = LostItemForm(request.POST)
          logger.debug(form)
          if form.is_valid():
              obj = form.save()
              obj.user = request.user
              # SAFE HTML
              obj.description = safe_html(obj.description)
              obj.save()
              messages.success(request, "Successfully added lost item.")
              return redirect("lostitem_view", obj.id)
          else:
              messages.error(request, "Error adding lost item.")
      else:
          form = LostItemForm()
      return render(request, "lostfound/lostitem_form.html", {"form": form, "action": "add"})
docs: Add a lostitem.