Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
blasferna authored Aug 11, 2021
1 parent 17b5719 commit 214b8b9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

Make simple calculations in your django forms.

![chrome-capture](https://user-images.githubusercontent.com/8385910/129076392-9f255fe1-830c-456d-8852-717a4abeb5f6.gif)


## Installation

```bash
Expand Down Expand Up @@ -45,4 +48,14 @@ class TestForm(forms.Form):
attrs = {'disabled': True}
)
)
tax = forms.DecimalField(
widget=calculation.NumericCalculationInput(
{
'mode': calculation.FORMULA,
'formula': 'parseFloat(amount/11).toFixed(2);'
},
attrs = {'disabled': True}
)
)

```

0 comments on commit 214b8b9

Please sign in to comment.