Django

Code

Ticket #7523 (closed: invalid)

Opened 1 year ago

Last modified 1 year ago

The max_length needs to become maxlength

Reported by: anonymous Assigned to: nobody
Milestone: Component: Documentation
Version: SVN Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

In de documentation overview, the creation of a model is shown. But a small typo crept in: The varchar length can not be set using max_length, but by using maxlength.

Attachments

Change History

06/22/08 06:00:30 changed by Simon Greenhill

  • status changed from new to closed.
  • needs_better_patch changed.
  • resolution set to invalid.
  • needs_tests changed.
  • needs_docs changed.

No, maxlength is deprecated. max_length is the key to use. See e.g. #2101

06/23/08 10:46:01 changed by ubernostrum

Simon, most likely this was someone trying to do the tutorial for the development version (where max_length is correct) while using the Django 0.96 codebase (where max_length is incorrect). We get these every so often, and point people to the big warning at the top of each documentation page outlining which version of Django it's written for.


Add/Change #7523 (The max_length needs to become maxlength)




Change Properties
Action