Opened 18 years ago
Closed 18 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 |
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.
Note:
See TracTickets
for help on using tickets.
dup of #2101.