ernestophone.ens.fr/instruments/forms.py

29 lines
608 B
Python
Raw Normal View History

2021-04-29 00:27:33 +02:00
from django import forms
from .models import Instrument, Reparation
class ChefReparationForm(forms.ModelForm):
class Meta:
model = Reparation
fields = ("date", "description", "description_en", "prix", "lieux")
class ChefEditInstrumentForm(forms.ModelForm):
class Meta:
model = Instrument
fields = (
"statut",
"user",
2021-09-29 13:31:15 +02:00
"etat",
2021-04-29 00:27:33 +02:00
"infos",
"type",
"owner",
"marque",
"model",
"serial",
"annee",
"prix",
"infos_en",
)