Skip to content

Commit

Permalink
Use hidden select to keep default category #71
Browse files Browse the repository at this point in the history
  • Loading branch information
joemull authored and mauromsl committed Aug 6, 2024
1 parent b9a0f60 commit fc97293
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 0 additions & 3 deletions forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ class Meta(BaseBandForm.Meta):
'fee',
'category',
]
widgets = {
'category': forms.HiddenInput,
}

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
Expand Down
4 changes: 3 additions & 1 deletion templates/consortial_billing/elements/calculate_fee.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
{{ band_form.size|materializecss:"s12 m10 l8" }}
{{ band_form.level|materializecss:"s12 m10 l8" }}
{{ band_form.currency|materializecss:"s12 m10 l8" }}
{{ band_form.category }}
<div hidden>
{{ band_form.category }}
</div>
</div>

<div class="row">
Expand Down

0 comments on commit fc97293

Please sign in to comment.