Help us understand the problem. What is going on with this article?

Django rest framework decorators `action decorator replaces list_route and detail_route`

背景

Django1.11.1のサポートが4月とかで切れるので、Django2.2にupdateを行っている。
Djangoのアップデートに伴って、restframeworkのバージョンも 3.6.3 から 3.8.2 にアップ。
するとPyCharmのapi.pyにこんな横棒が。

from rest_framework.decorators import detail_route, list_route

しかしroutingは正常に行えている。

確認

以下のページでアナウンスされていた。
https://www.django-rest-framework.org/community/3.8-announcement/

Both list_route and detail_route are now pending deprecation. 
They will be deprecated in 3.9 and removed entirely in 3.10.

なるほど、バージョン3.8.2ではまだ完全には廃止されていない。

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
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  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
ユーザーは見つかりませんでした