Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom model managers don't work #31

Closed
carlio opened this issue Oct 6, 2014 · 4 comments
Closed

Custom model managers don't work #31

carlio opened this issue Oct 6, 2014 · 4 comments

Comments

@carlio
Copy link
Collaborator

carlio commented Oct 6, 2014

Custom model managers have several errors of the form:

Instance of 'UserManager' has no 'exclude' member
@smirolo
Copy link
Contributor

smirolo commented Mar 8, 2015

I had the same issue when upgrading from Django 1.6 to Django 1.7. This is related to Calling custom QuerySet methods from the Manager in the release notes.

I solved it two different ways:

  1. Replace custom Managers by custom QuerySets and replace objects = CustomerManager() by objects = CustomQuerySet.as_manager().
  2. Put a workaround in pylint_django/augmentations/init.py.

@mitchelljkotler
Copy link

I'm having this issue also, any chance your fixed gets pulled in?

@carlio
Copy link
Collaborator Author

carlio commented Jun 18, 2015

Fixed in 0.6.1. @smirolo I pulled in your change, thanks!

@carlio carlio closed this as completed Jun 18, 2015
@mitchelljkotler
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants