Also, take a look in tests/ for examples like this:

@override_settings(REST_FRAMEWORK={'DEFAULT_SCHEMA_CLASS':
'rest_framework.schemas.AutoSchema'})

On Thu, Sep 17, 2020 at 9:57 AM Alan Crosswell <a...@columbia.edu> wrote:

> It's plural:
>
> grep -nr DEFAULT_FILTER_BACKEND rest_framework/settings.py
>
> rest_framework/settings.py:52:    'DEFAULT_FILTER_BACKENDS': [],
>
> rest_framework/settings.py:141:    'DEFAULT_FILTER_BACKENDS',
>
>
>
> On Thu, Sep 17, 2020 at 2:47 AM mohammad moghadas <
> s.m.moghadas2...@gmail.com> wrote:
>
>> Hi guys
>> i'm trying to override `DEFAULT_FILTER_BACKEND` in tests. I've attempted
>> 2 approaches which have caused to failure:
>> 1- @override_settings decorator top of both method and class
>> 2- using with self.settings(REST_FRAMEWORK={...}) context manager
>> I don't know whether it needs to modify my views
>>
>> please help me. thanks a lot
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django REST framework" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-rest-framework+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-rest-framework/cc289acb-aac6-4af1-9ff4-261791c4cdc6n%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-rest-framework/cc289acb-aac6-4af1-9ff4-261791c4cdc6n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-rest-framework+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-rest-framework/CAJaAdZiNgafRo5pDhYpGfd4v%3Ds865P7A%2Bm2xkoV-jeFqmXXxtA%40mail.gmail.com.

Reply via email to