Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
1
Help us understand the problem. What is going on with this article?
@nakamumu

update django version 1.11.1 to 2.2

More than 1 year has passed since last update.

背景

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

1
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
nakamumu

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
1
Help us understand the problem. What is going on with this article?