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

Replaced usage of deprecated function get_fields_with_model with new … #3052

Merged
merged 4 commits into from
Dec 5, 2017

Conversation

josejrobles
Copy link
Contributor

Replaced usage of deprecated function get_fields_with_model with new local function, which does the same thing.

Copy link
Contributor

@agjohnson agjohnson left a 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!

@@ -28,6 +28,15 @@
from builtins import range


def get_fields_with_model(cls):
return [
Copy link
Contributor

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.

Copy link
Member

@humitos humitos left a 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?

@RichardLitt
Copy link
Member

I don't think so. @agjohnson review again?

@agjohnson
Copy link
Contributor

Thanks for the @josejrobles, looks good to me! 🎉

@agjohnson agjohnson merged commit 4b01021 into readthedocs:master Dec 5, 2017
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

Successfully merging this pull request may close these issues.

4 participants