#20543: Possible typo in Django's documentation --------------------------------------+--------------------------------- Reporter: i.amber.jain@… | Owner: nobody Type: Cleanup/optimization | Status: new Component: Documentation | Version: 1.5 Severity: Normal | Keywords: max_length,db,model Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 --------------------------------------+--------------------------------- https://docs.djangoproject.com/en/1.5/topics/db/models/#field-options lists following example (under "choices" sub-section):
{{{ from django.db import models class Person(models.Model): SHIRT_SIZES = ( ('S', 'Small'), ('M', 'Medium'), ('L', 'Large'), ) name = models.CharField(max_length=60) shirt_size = models.CharField(max_length=2, choices=SHIRT_SIZES) }}} Why does the example below has `max_length=2` instead of `max_length=1` ? Is this because of some DB/vendor issue (I could not find anything about this at https://docs.djangoproject.com/en/1.5/ref/databases/)? Someone on #django (freenode) suggested this could be a typo. So, I thought of reporting it here. Thanks! -- Ticket URL: <https://code.djangoproject.com/ticket/20543> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.28af64f0ff2c01c9df0951298b27cae6%40djangoproject.com?hl=en. For more options, visit https://groups.google.com/groups/opt_out.