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

Allowed Q objects in limit_choices_to introspection.#6472

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
lovelydinosaur merged 1 commit intoencode:masterfromcarltongibson:issue/6470
Feb 25, 2019

Conversation

@carltongibson
Copy link
Collaborator

Closes#6470.

hsmett reacted with heart emoji
@carltongibsoncarltongibson added this to the3.9.2 Release milestoneFeb 25, 2019
@lovelydinosaur
Copy link
Contributor

Ace 👍

@lovelydinosaurlovelydinosaur merged commit8a29c53 intoencode:masterFeb 25, 2019
@carltongibsoncarltongibson deleted the issue/6470 branchFebruary 25, 2019 11:11

limit_choices_to=model_fieldandmodel_field.get_limit_choices_to()
iflimit_choices_to:
kwargs['queryset']=kwargs['queryset'].filter(**limit_choices_to)

Choose a reason for hiding this comment

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

@carltongibson cool new feature. A question: it support use a callable like djangoForeignKey.limit_choices_to?

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

pchiquet pushed a commit to pchiquet/django-rest-framework that referenced this pull requestNov 17, 2020
sigvef pushed a commit to sigvef/django-rest-framework that referenced this pull requestDec 3, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@luzfcbluzfcbluzfcb left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

3.9.2 Release

Development

Successfully merging this pull request may close these issues.

3 participants

@carltongibson@lovelydinosaur@luzfcb

[8]ページ先頭

©2009-2025 Movatter.jp