Skip to content

Commit

Permalink
remove unneeded arguments #88
Browse files Browse the repository at this point in the history
  • Loading branch information
RamezIssac committed Oct 6, 2023
1 parent ff69bca commit 46a5b7a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/source/topics/filter_form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ The interface is simple, only 3 mandatory methods to implement, The rest are man

* ``get_end_date``: Mandatory, return the end date of the report.

* ``get_crispy_helper`` : return a crispy form helper to be used in rendering the form. (optional)
* ``get_crispy_helper`` : Optional, return a crispy form helper to be used in rendering the form.

In case you are working with a crosstab report, you need to implement the following methods:

Expand Down Expand Up @@ -81,8 +81,7 @@ Example a full example of a custom form:
required=False, label="Show requests from other People Only"
)
def __init__(self, request=None, *args, **kwargs):
self.request = request
def __init__(self, *args, **kwargs):
super(RequestLogForm, self).__init__(*args, **kwargs)
# provide initial values and ay needed customization
self.fields["start_date"].initial = datetime.date.today()
Expand Down

0 comments on commit 46a5b7a

Please sign in to comment.