Projet

Général

Profil

0001-misc-use-django-import-export-1-2-41273.patch

Benjamin Dauvergne, 02 avril 2020 16:24

Télécharger (1,8 ko)

Voir les différences:

Subject: [PATCH] misc: use django-import-export >=1,<2 (#41273)

 debian/control                      | 4 ++--
 setup.py                            | 2 +-
 src/authentic2/manager/resources.py | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
debian/control
20 20
    python-django-select2 (>= 5),
21 21
    python-gadjo (>= 0.53),
22 22
    python-django-tables2 (>= 1),
23
    python-django-import-export (>= 0.2.7),
24
    python-django-import-export (<= 0.4.5),
23
    python-django-import-export (>= 1),
24
    python-django-import-export (< 2),
25 25
    python-djangorestframework (>= 3.3),
26 26
    python-markdown (>= 2.1),
27 27
    python-ldap (>= 2.4),
setup.py
124 124
          'django-tables2>=1.0,<2.0',
125 125
          'django-ratelimit',
126 126
          'gadjo>=0.53',
127
          'django-import-export>=0.2.7,<=0.4.5',
127
          'django-import-export>=1,<2',
128 128
          'djangorestframework>=3.3,<3.5',
129 129
          'six>=1',
130 130
          'Markdown>=2.1',
src/authentic2/manager/resources.py
30 30
    def clean(self, value):
31 31
        raise NotImplementedError
32 32

  
33
    def render(self, value):
33
    def render(self, value, object):
34 34
        return u', '.join(map(six.text_type, value.all()))
35 35

  
36 36

  
37
-