-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Replaced usage of deprecated function get_fields_with_model with new … #3052
Replaced usage of deprecated function get_fields_with_model with new … #3052
Conversation
…local function, which does the same thing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't quite follow why the fix is required. It would be to comment some of this in the code. Otherwise, this looks good to me!
readthedocs/builds/version_slug.py
Outdated
@@ -28,6 +28,15 @@ | |||
from builtins import range | |||
|
|||
|
|||
def get_fields_with_model(cls): | |||
return [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is a prescribed Django fix for this, perhaps link to the permalink in docs here to explain what this is for.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm OK with this change.
Is there something missing before merging?
I don't think so. @agjohnson review again? |
Thanks for the @josejrobles, looks good to me! 🎉 |
Replaced usage of deprecated function get_fields_with_model with new local function, which does the same thing.