user export csv compatiblity with tablib < 0.11 (#30091)
This commit is contained in:
parent
7e1f2ca385
commit
c7f80a61d2
|
@ -342,6 +342,9 @@ class UsersExportView(ExportMixin, UsersView):
|
|||
|
||||
@property
|
||||
def csv(self):
|
||||
if hasattr(self._dataset, 'csv'):
|
||||
# compatiblity for tablib < 0.11
|
||||
return self._dataset.csv
|
||||
return self._dataset.export('csv')
|
||||
|
||||
def get_dataset(self):
|
||||
|
|
Loading…
Reference in New Issue