You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where since this is a yearly report, I obviously want it to start a good deal earlier than the default "1st January of this year" (which is fine for other reports). This works fine in a plain old report view, but breaks in a dashboard.
As for a dashboard widget, there will be no cleaned_data, since it doesn't take a round trip via the rendered form. Should the ReportForm be trying to get the start_date from initial_data if there is none in cleaned data?
Do you (again) have a good idea where to monkey-patch this in? I'm not yet ready to write a complete custom form (although that will happen in the future, especially to integrate a date picker, but for now...), so ideally I could keep using report_form_factory.
The text was updated successfully, but these errors were encountered:
I have this sort of report:
Where since this is a yearly report, I obviously want it to start a good deal earlier than the default "1st January of this year" (which is fine for other reports). This works fine in a plain old report view, but breaks in a dashboard.
AFAICS, this is due to
django-slick-reporting/slick_reporting/forms.py
Lines 152 to 156 in a303284
As for a dashboard widget, there will be no
cleaned_data
, since it doesn't take a round trip via the rendered form. Should theReportForm
be trying to get thestart_date
frominitial_data
if there is none incleaned data
?Do you (again) have a good idea where to monkey-patch this in? I'm not yet ready to write a complete custom form (although that will happen in the future, especially to integrate a date picker, but for now...), so ideally I could keep using
report_form_factory
.The text was updated successfully, but these errors were encountered: