Opened 11 years ago

Closed 10 years ago

Last modified 10 years ago

#7119 closed (invalid)

Model's get_FOO_* methods cannot be overriden

Reported by: Matias Surdi <matiassurdi@…> Owned by: nobody
Component: Database layer (models, ORM) Version: master
Severity: Keywords:
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


It's not possible to override any of the get_FOO_* methods for any model. For example, If I'd like to change the default url for a "file" FileField I can't define my own get_file_url method in the model.

If this bug report is accepted, I could submit a patch.

Change History (4)

comment:1 Changed 10 years ago by Eric Holscher

milestone: 1.0 maybe
Triage Stage: UnreviewedDesign decision needed

comment:2 Changed 10 years ago by Benjamin Schwarze

All file-related and image-related get_FIELD_* methods have been removed in [8291].
This changeset is also listed in BackwardsIncompatibleChanges.

The only remaining get_FIELD_* method would be get_FIELD_display.

comment:3 Changed 10 years ago by Alex Gaynor

Resolution: invalid
Status: newclosed

Marking as invalid, since these methods no longer exist.

comment:4 Changed 10 years ago by (none)

milestone: 1.0 maybe

Milestone 1.0 maybe deleted

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