Projet

Général

Profil

0001-misc-ignore-name-argument-for-compatibility-with-DRF.patch

Benjamin Dauvergne, 04 décembre 2020 14:59

Télécharger (759 octets)

Voir les différences:

Subject: [PATCH] misc: ignore name argument for compatibility with DRF==3.4

 src/authentic2/compat/drf.py | 1 +
 1 file changed, 1 insertion(+)
src/authentic2/compat/drf.py
21 21
    from rest_framework.decorators import list_route, detail_route
22 22

  
23 23
    def action(**kwargs):
24
        kwargs.pop('name', None)
24 25
        if kwargs.pop('detail'):
25 26
            return detail_route(**kwargs)
26 27
        else:
27
-