Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

TokenAdmin.autocomplete_fields Breaks Some Use Cases, Revert#9301

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
tomchristie merged 1 commit intoencode:masterfromalexdlaird:alexdlaird-patch-1
Mar 21, 2024

Conversation

alexdlaird
Copy link
Contributor

@alexdlairdalexdlaird commentedMar 18, 2024
edited
Loading

Description

Fixes#9300. From the discussion in that issue, the PR (here) that addedTokenAdmin.autocomplete_fields does not work in all cases and should be reverted.

For individuals that want this same functionality after it is reverted, they can do the follow to patchTokenAdmin:

fromrest_framework.authtoken.adminimportTokenAdminTokenAdmin.autocomplete_fields= ("user",)

Happy to add the above to the docs too, if folks think that's worthwhile, otherwise wanted it to be in this PR so those searching for the issue find the above solution.

Copy link
Member

@browniebrokebrowniebroke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Although this autocomple option was one of the changes I was waiting 3.15 for, I think reverting is the right thing to do.

Not a maintainer, but in case it helps, LGTM

@tomchristietomchristie merged commitd7c8dcf intoencode:masterMar 21, 2024
@tomchristietomchristie mentioned this pull requestMar 21, 2024
9 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@browniebrokebrowniebrokebrowniebroke approved these changes

@tomchristietomchristieAwaiting requested review from tomchristie

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Error: An admin for model "User" has to be registered to be referenced by TokenAdmin.autocomplete_fields.
3 participants
@alexdlaird@browniebroke@tomchristie

[8]ページ先頭

©2009-2025 Movatter.jp