title: How can I programmatically obtain the max_length of a Django model field?
body: <p>Say I have a Django class something like this:</p>
  
  <pre><code>class Person(models.Model):
      name = models.CharField(max_length=50)
      # ...
  </code></pre>
  
  <p>How can I programatically obtain the <code>max_length</code> value for the <code>name</code> field?</p>