Opened 3 years ago

Closed 3 years ago

#32458 closed Cleanup/optimization (fixed)

Make Index and Constraint __repr__ consistent.

Reported by: Hannes Ljungberg Owned by: Hannes Ljungberg
Component: Database layer (models, ORM) Version: 4.0
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Hannes Ljungberg)

Index, UniqueConstraint, ExclusionConstraint and CheckConstraint currently have slightly different formatting on their __repr__ methods. We should keep them consistent.

Change History (6)

comment:1 by Mariusz Felisiak, 3 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Mariusz Felisiak, 3 years ago

Patch needs improvement: set

comment:3 by Hannes Ljungberg, 3 years ago

Description: modified (diff)
Summary: Make class based Indexes and Constraints have a consistent reprMake Index and Constraint __repr__ consistent.

comment:4 by Hannes Ljungberg, 3 years ago

Patch needs improvement: unset

comment:5 by Mariusz Felisiak, 3 years ago

Has patch: set
Triage Stage: AcceptedReady for checkin

comment:6 by Mariusz Felisiak <felisiak.mariusz@…>, 3 years ago

Resolution: fixed
Status: assignedclosed

In 87acbf06:

Fixed #32458 -- Made repr() for Index and BaseConstraint subclasses more consistent.

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