abstract base model classes never fire class_prepared signal
|Reported by:||Carl Meyer||Owned by:||Christopher Babiak|
|Component:||Database layer (models, ORM)||Version:||1.5|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||yes|
I can't think of a reason why this would be the preferred behavior.
ensure_default_managers (which is one of two uses of
class_prepared in Django itself) is written with a specific case to handle abstract classes, even though it will never receive one, so clearly somebody else had an expectation that they would fire the signal too.
Change History (5)
comment:2 Changed 3 years ago by
|Owner:||changed from nobody to Christopher Babiak|
|Status:||new → assigned|