title: How to Map a Django model field to some user defined value
body: <p>Hi My project works on Django and some AngularJS. I want map my Django model field values into some custom string values. The following is my Model,</p>
  
  <pre><code>class History(models.Model):
      TYPE_CHOICES = (
          (1, 'CREATE'),
          (0, 'EDIT'),
          (2, 'DELETE'),
      )
      user = models.ForeignKey(User, related_name='+')
      mw = models.ForeignKey('CP', related_name="history")
      field_name = models.CharField(max_length=192, null=False)
      old_value = models.CharField(max_length=500, null=True, blank=True)
      new_value = models.CharField(max_length=500, null=True, blank=True)
      type = models.IntegerField(default=0, choices=TYPE_CHOICES)
      date_created = models.DateTimeField(auto_now_add=True)
  </code></pre>
  
  <p>the type 1, 2 and 0 I need to display in my website. So i just passed the value as <code>&lt;td&gt;{{t.type}}&lt;/td&gt;</code> But it giving me the values as 1, 2 and 0. How can I display it as create, update or delete string values? Any idea guys? Thanks in advance. </p>