Changes between Initial Version and Version 1 of Ticket #26652, comment 3


Ignore:
Timestamp:
May 26, 2016, 9:46:25 AM (8 years ago)
Author:
Loic Bistuer

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #26652, comment 3

    initial v1  
    11Managers were never intended to be accessible on model instances, we even [https://github.com/django/django/blob/30d110ef43d8a3c50ea8ec4e4fe49bd2bb859530/django/db/models/manager.py#L186 use a descriptor to prevent that usage] but  `_default_manager` somehow escaped that restriction. I guess we can mention the change in the release notes.
    22
    3 For completeness I'll mention that if we really wanted these available on the instance we could just move the properties from `ModelBase` to `models.Model`, but I don't think we should.
     3For completeness I'll mention that if we really wanted these available on the instance we could just redeclare the properties from `ModelBase` on `models.Model`, but I don't think we should.
Back to Top