Opened 8 years ago

Closed 8 years ago

#4811 closed (duplicate)

Different name conventions for models and newforms

Reported by: anonymous Owned by: jacob
Component: Uncategorized Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

forms.CharField and models.CharField parameter max length is named differently in forms and models

models.CharField - maxlength
forms.CharField - max_length

This is really bad practice to follow. It looks like other names (both in forms and models) uses _ to separate names.
Hence, max_length must be used in models.

I know it breaks backward compatiblity, but still must be cleaned out.

Change History (1)

comment:1 Changed 8 years ago by Gary Wilson <gary.wilson@…>

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

dup of #2101.

Note: See TracTickets for help on using tickets.
Back to Top