title: Django - How to get the max_length of a field
body: <p>How do I access the <code>max_length</code> of a model field in Django? I am writing a serializer with the REST framework and I want to write a custom validation function to validate the length. Note that i am using SQLite, so the database itself does not enforce the <code>max_length</code>.</p>