#27532 closed Cleanup/optimization (fixed)
Deprecate Model._meta.has_auto_field
Reported by: | Adam Johnson | Owned by: | Adam Johnson |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | 1.10 |
Severity: | Normal | Keywords: | |
Cc: | me@… | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | yes |
Easy pickings: | no | UI/UX: | no |
Description
It seems a bit of a waste when it just mirrors the result of bool(Model._meta.auto_field)
, and it's not used in many places.
Change History (4)
comment:1 by , 8 years ago
Cc: | added |
---|---|
Has patch: | set |
Owner: | changed from | to
comment:2 by , 8 years ago
Patch needs improvement: | set |
---|---|
Summary: | Remove Model._meta.has_auto_field → Deprecate Model._meta.has_auto_field |
Triage Stage: | Unreviewed → Accepted |
Note:
See TracTickets
for help on using tickets.
PR