Skip to content

Commit

Permalink
Fix wrong names #91
Browse files Browse the repository at this point in the history
  • Loading branch information
RamezIssac committed Oct 10, 2023
1 parent 940ddd4 commit 8e7fa38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions demo_proj/demo_app/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ class TotalProductSalesByCountry(ReportView):


class SumValueComputationField(ComputationField):
computation_method = Sum
computation_field = "value"
calculation_method = Sum
calculation_field = "value"
verbose_name = _("Sales Value")
name = "my_value_sum"

Expand Down
4 changes: 2 additions & 2 deletions docs/source/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ A time series report is a report that computes the data for each period of time.
class SumValueComputationField(ComputationField):
computation_method = Sum
computation_field = "value"
calculation_method = Sum
calculation_field = "value"
verbose_name = _("Sales Value")
name = "my_value_sum"
Expand Down

0 comments on commit 8e7fa38

Please sign in to comment.