-
-
Notifications
You must be signed in to change notification settings - Fork 365
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
Django 2.0 Warning: use_for_related_fields is deprecated #290
Comments
We need a game plan for this then. 😄 2.0 was released yesterday |
More lore: Old API: class CustomManager(models.Model): # (sic, pretty sure they meant models.Manager)
use_for_related_fields = True
class Model(models.Model):
custom_manager = CustomManager() New API: class Model(models.Model):
custom_manager = CustomManager()
class Meta:
base_manager_name = 'custom_manager' |
tony
added a commit
to develtech/django-model-utils
that referenced
this issue
Dec 7, 2017
Seems like this issue should be closed in light of (In my app, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
Using the
InheritanceManager
on a class causes the following warning:This seems to be used in a couple of places:
InheritanceManagerMixin
QueryManagerMixin
I'm not really sure of the ramifications of just removing this vs. using
Meta.base_manager_name
, etc. I know there's some special things done with the firstManager
found on a DjangoModel
class.Environment
The text was updated successfully, but these errors were encountered: