Comment icon indicating copy to clipboard operation
Comment copied to clipboard

Remove the imports of `managers` from models

Open abhiabhi94 opened this issue 3 years ago • 0 comments

Describe the bug

Currently, managers can be imported from models.

Steps To Reproduce

Something like this works:

from comment.models import CommentManager

Expected behavior

Managers should ideally not be available from the models. This was due to the namespace pollution caused by using * imports in __init__.py. #213 addresses the namespace pollution, but managers are still given there for backward compatibility. Remove these in v3.0.0.

abhiabhi94 avatar Jul 19 '21 04:07 abhiabhi94