-
-
Notifications
You must be signed in to change notification settings - Fork 23
use_query
prefetching for ManyToMany and ManyToOne fields
#112
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
Merged
Archmonger
merged 38 commits into
reactive-python:main
from
Archmonger:use-query-manager-field-compat
Dec 28, 2022
Merged
Changes from 21 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
84b6fb3
Attempt ManyToMany auto-fetching
Archmonger 8904fd3
functioning many_to_many and many_to_one handling
Archmonger 11b185e
better naming for todo item functions
Archmonger cdfacbe
fetch_options decorator
Archmonger e6b1237
failure tests
Archmonger 0564716
format migrations
Archmonger 36035fb
OrmFetch type hint on fetch_options
Archmonger ecb96e6
pass -> ...
Archmonger d1bd3f8
better variable/function names
Archmonger 96c451f
set fetch attributes to false by default
Archmonger 2b8d036
remove kw_only for py3.8 compatibility
Archmonger f73c6d9
prep _postprocess_django_query for potential API changes
Archmonger 9259729
QueryOptions is Callable
Archmonger 50de9c4
one test case without query_options
Archmonger 99ac352
use_query options via type hints
Archmonger 8bf6097
fix mypy warnings
Archmonger b1e55c9
Merge remote-tracking branch 'upstream/main' into use-query-manager-f…
Archmonger 8aeef17
cleanup
Archmonger 275c385
fix docs builds
Archmonger b0e2c03
better postprocessor description
Archmonger 31c1998
remove unneeded defaults for postprocessor opts
Archmonger 35e2d3f
postprocessor options as kwargs
Archmonger a88bee4
add tests for relational query
Archmonger 93f918a
documentation
Archmonger 17c5bd8
grammar correction
Archmonger a17ca7c
use_query docs
Archmonger 834a536
move queryoptions to first arg
Archmonger 4865e1d
fix tests
Archmonger 10ddb70
add linenums to docs
Archmonger 794e15e
enable linenums globally
Archmonger 3f082fc
add changelog
Archmonger 1baa379
misc docs cleanup
Archmonger b0043b1
changelog is not an rst
Archmonger 03c0681
revert data variable name
Archmonger 17de270
Typehints, Postprocessor returns `Any`, and `defaults` configuration …
Archmonger efabc16
reorganize config.py
Archmonger a1b8f6e
custom postprocessor docs
Archmonger f5ccda1
fix spelling issues
Archmonger File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,22 @@ | ||
from django.contrib import admin | ||
from test_app.models import TodoItem | ||
from test_app.models import ForiegnChild, RelationalChild, RelationalParent, TodoItem | ||
|
||
|
||
@admin.register(TodoItem) | ||
class TodoItemAdmin(admin.ModelAdmin): | ||
pass | ||
|
||
|
||
@admin.register(RelationalChild) | ||
class RelationalChildAdmin(admin.ModelAdmin): | ||
pass | ||
|
||
|
||
@admin.register(RelationalParent) | ||
class RelationalParentAdmin(admin.ModelAdmin): | ||
pass | ||
|
||
|
||
@admin.register(ForiegnChild) | ||
class ForiegnChildAdmin(admin.ModelAdmin): | ||
pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.