init project tests

This commit is contained in:
Maximilian 2025-06-07 19:24:41 +02:00
parent d0ff728224
commit 7c9318c778
44 changed files with 4431 additions and 49 deletions

View file

@ -11,16 +11,10 @@ class DateInput(forms.DateInput):
class CostsForm(forms.ModelForm):
class Meta:
widgets = {
"created": DateInput(
format="%Y-%m-%d", attrs={"value": date.today}
)
}
model = Costs
fields = ["id_bird", "costs", "comment", "created"]
fields = ["id_bird", "costs", "comment"]
labels = {
"id_bird": _("Patient"),
"costs": _("Betrag [€]"),
"comment": _("Bemerkung"),
"created": _("Gebucht am"),
}