Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#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 Adam Johnson, 8 years ago

Cc: me@… added
Has patch: set
Owner: changed from nobody to Adam Johnson
Last edited 8 years ago by Tim Graham (previous) (diff)

comment:2 by Tim Graham, 8 years ago

Patch needs improvement: set
Summary: Remove Model._meta.has_auto_fieldDeprecate Model._meta.has_auto_field
Triage Stage: UnreviewedAccepted

comment:3 by Tim Graham <timograham@…>, 8 years ago

Resolution: fixed
Status: assignedclosed

In 6252fd63:

Fixed #27532 -- Deprecated Model._meta.has_auto_field

comment:4 by Tim Graham <timograham@…>, 7 years ago

In 5bcca2a:

Refs #27532 -- Removed Model._meta.has_auto_field per deprecation timeline.

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