Opened 17 years ago

Closed 17 years ago

#4811 closed (duplicate)

Different name conventions for models and newforms

Reported by: anonymous Owned by: Jacob
Component: Uncategorized Version: dev
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


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 by Gary Wilson <gary.wilson@…>, 17 years ago

Resolution: duplicate
Status: newclosed

dup of #2101.

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