Skip to content

Commit 62c87d6

Browse files
authored
Merge pull request #27 from dpc-sdp/SXDEDPCXZIC-424
SXDEDPCXZIC-424 / CKAN 2.11 upgrade
2 parents 7faece5 + edab79b commit 62c87d6

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

ckanext/datavic_reporting/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ def download_file(directory, filename):
485485
filename,
486486
mimetype="text/csv",
487487
as_attachment=True,
488-
attachment_filename=filename,
488+
download_name=filename,
489489
)
490490

491491

ckanext/datavic_reporting/model/base.py

Lines changed: 0 additions & 4 deletions
This file was deleted.

ckanext/datavic_reporting/model/report_models.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22

33
import datetime
44

5+
from sqlalchemy import Column, types
6+
57
import ckan.model as model
8+
import ckan.plugins.toolkit as tk
69
from ckan.model.types import make_uuid
7-
from sqlalchemy import Column, types
810

9-
from .base import Base
1011

1112
log = __import__("logging").getLogger(__name__)
1213

1314

14-
class ReportSchedule(Base):
15+
class ReportSchedule(tk.BaseModel):
1516
__tablename__ = "report_schedule"
1617

1718
id = Column(types.UnicodeText, primary_key=True, default=make_uuid)
@@ -48,7 +49,7 @@ def as_dict(self):
4849
}
4950

5051

51-
class ReportJob(Base):
52+
class ReportJob(tk.BaseModel):
5253
__tablename__ = "report_job"
5354

5455
id = Column(types.UnicodeText, primary_key=True, default=make_uuid)

0 commit comments

Comments
 (0)