title: Django - Non-verbose ways to save POST data
body: <p>I'm simply wondering whether there is a better way to take from data and write it to a database. The 'standard' way feels a little verbose to me. So my question is simply how to rewrite this in a less redundant way. I mean it works, but I feel like this isn't the 'correct' way...</p>
  
  <pre><code>def post(self, request, **kwargs):
          ticket = Ticket.objects.get(id = ticket_id)
          comment = Comment()
          if request.method == 'POST':
              if 'solve_comment' in request.POST:
                  ticket.state_id = 5
                  text = request.POST['solve_comment']
                  comment.text = text
                  comment.comment_type = "solving_note"
                  comment.content_type = ContentType.objects.get(id=114)
                  comment.object_id = ticket.id
                  comment.created_by_id = request.user.id
                  comment.save()
                  ticket.save()
  </code></pre>
  
  <p>The issues with this is if there is say, 5+inputs in a form which creates this massive wall of code. Any suggestions would be great!</p>