title: Django how to get first 10 characters of a TextField as a string?
body: <p>Please pardon my question, I am a beginner in Python and Django.</p>
  
  <p>I have a <code>class Response</code> here, which inherits from <code>models.Model</code>. One of the fields is <code>response_content</code>, a <code>TextField</code>. I have a function <code>__str__</code> which is supposed to return a string representation of the object. The first part of this string is that object's <code>id</code>, then a space separator, then the field <code>self.author_name</code>, then a pipe separator, then after that I want to display the first 10 characters of the <code>self.response_content</code> as a string. I do not want to dump the whole <code>self.response_context</code> into the string, because this is a <code>TextField</code> with <code>max_length=4000</code>, so it can get very big! I want to have just the first 10 characters of this field to be displayed as a string, so that I can just look and immediately remember what was the rest of the <code>response_content</code> from these displayed characters. That is how I can tell apart individual <code>Response</code>s.</p>
  
  <p>I want to replace the <code>???</code> with the necessary expression. I do not yet know the syntax well enough, so please don't hate me for asking this question.</p>
  
  <p>This is my <code>models.py</code> file:</p>
  
  <pre><code>from django.db import models
  
  
  # Create your models here.
  class Response(models.Model):
      # Default field options: (null=False, blank=False)
      # Bu default, Django gives each model the following field:
      # id = models.AutoField(primary_key=True)
      #
      # The name of the author.
      author_name = models.CharField(max_length=32)
      # The author's email address.
      author_email = models.EmailField(max_length=254)
      # The date and time when this response was made.
      response_date = models.DateTimeField(auto_now_add=True)
      # The text content of the response.
      response_content = models.TextField(max_length=4000)
  
      # This is used for returning a string description of the Response for the
      # admin interface.
      def __str__(self):
          return (str(self.id) + " " + self.author_name + "|" + ???)
  </code></pre>