Opened 10 years ago

Last modified 10 years ago

#24236 closed Bug

Custom ManyToManyFields don't generate SQL database changes — at Version 1

Reported by: Markus Holtermann Owned by: Markus Holtermann
Component: Database layer (models, ORM) Version: 1.7
Severity: Release blocker 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 Andriy Sokolovskiy)

Regression introduced in 3d4a826174b7a411a03be39725e60c940944a7fe

If user writes a class, inherited from ManyToManyField ("custom" m2m field) and doesn't define a get_internal_type(): return "ManyToManyField the schema backends won't recognize it as a m2m field and thus don't treat it as such.

This breaks existing code.

Change History (1)

comment:1 by Andriy Sokolovskiy, 10 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top