-
-
Notifications
You must be signed in to change notification settings - Fork 20k
python3Packages.djangorestframework: 3.16.1 -> 3.17.1 #523937
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
Changes from all commits
af4899c
0ec6254
04d7945
2b75430
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Per the contributing guide on writing good commit messages:
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does this look good? |
|
mweinelt marked this conversation as resolved.
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| Upstream-Status: Submitted [https://github.com/rsinger86/drf-flex-fields/pull/146] | ||
|
|
||
| diff --git a/rest_flex_fields/filter_backends.py b/rest_flex_fields/filter_backends.py | ||
| index 5eba44d..1f6461c 100644 | ||
| --- a/rest_flex_fields/filter_backends.py | ||
| +++ b/rest_flex_fields/filter_backends.py | ||
| @@ -4,7 +4,16 @@ from django.core.exceptions import FieldDoesNotExist | ||
| from django.db import models | ||
| from django.db.models import QuerySet | ||
| -from rest_framework.compat import coreapi, coreschema | ||
| +try: | ||
| + from rest_framework.compat import coreapi, coreschema | ||
| +except ImportError: | ||
| + try: | ||
| + import coreapi | ||
| + import coreschema | ||
| + except ImportError: | ||
| + coreapi = None | ||
| + coreschema = None | ||
| + | ||
| from rest_framework.filters import BaseFilterBackend | ||
| from rest_framework.request import Request | ||
| from rest_framework.viewsets import GenericViewSet |
Uh oh!
There was an error while loading. Please reload this page.