0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

update django version 1.11.1 to 2.2

Last updated at Posted at 2020-02-21

背景

Djangoのversionを1.11.1から2.2へあげた際に、
django-filterのversionも上げる必要があった。(1.0.4から2.2.0へ上げた。)
すると、...?id=nullで投げたAPIがBadRequestで返ってきた。

原因

1.11.1

アナウンス

-https://django-filter.readthedocs.io/en/master/guide/migration.html#filterset-strictness-handling-moved-to-view-788

対応1

  • FilterViewでstrict=Falseを指定しないといけないとからしいのだが上手くいっていない。

対応2

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?