Opened 7 years ago

Closed 7 years ago

Last modified 7 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: UI/UX:

Description

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 7 years ago by ericholscher

  • milestone set to 1.0 maybe
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Design decision needed

comment:2 Changed 7 years ago by benjixx

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 7 years ago by Alex

  • Resolution set to invalid
  • Status changed from new to closed

Marking as invalid, since these methods no longer exist.

comment:4 Changed 7 years ago by anonymous

  • milestone 1.0 maybe deleted

Milestone 1.0 maybe deleted

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