Allow setting unit on machine creation page
This commit is contained in:
parent
9e9d5df961
commit
49e247dd0d
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ class EquipmentDetailView(LoginRequiredMixin, QuickActionsMixin, generic.DetailV
|
||||||
|
|
||||||
class EquipmentCreateView(LoginRequiredMixin, QuickActionsMixin, generic.CreateView):
|
class EquipmentCreateView(LoginRequiredMixin, QuickActionsMixin, generic.CreateView):
|
||||||
model = Equipment
|
model = Equipment
|
||||||
fields = ['room', 'name', 'default_work_form', 'default_repetition_number']
|
fields = ['room', 'name', 'default_work_form', 'unit', 'default_repetition_number']
|
||||||
template_name = 'gym/equipment_edit.html'
|
template_name = 'gym/equipment_edit.html'
|
||||||
room = None
|
room = None
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue