Opened 18 years ago
Closed 18 years ago
#5119 closed (invalid)
Error in tutorial
| Reported by: | anonymous | Owned by: | Jacob |
|---|---|---|---|
| Component: | Uncategorized | Version: | 0.96 |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Error in tutorial at http://www.djangoproject.com/documentation/tutorial01/ :
from django.db import models
class Poll(models.Model):
question = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
(...)
max_length should be maxlength.
Note:
See TracTickets
for help on using tickets.
The argument was recently changed to max_length in the trunk version. See #2101 and [5803].
If you are using Django 0.96, the documentation you should use is http://www.djangoproject.com/documentation/0.96/