sent to on sent to
This commit is contained in:
parent
24249a13ea
commit
2a6bd1bcd3
4 changed files with 43 additions and 4 deletions
|
@ -17,10 +17,8 @@ class BirdAddForm(forms.ModelForm):
|
|||
|
||||
class Meta:
|
||||
widgets = {
|
||||
"date_found": DateInput(
|
||||
format="%Y-%m-%d",
|
||||
attrs={
|
||||
"value": date.today})}
|
||||
"date_found": DateInput(format="%Y-%m-%d", attrs={"value": date.today})
|
||||
}
|
||||
model = FallenBird
|
||||
fields = [
|
||||
"bird_identifier",
|
||||
|
@ -57,6 +55,7 @@ class BirdEditForm(forms.ModelForm):
|
|||
"place",
|
||||
"status",
|
||||
"aviary",
|
||||
"sent_to",
|
||||
"find_circumstances",
|
||||
"diagnostic_finding",
|
||||
"costs",
|
||||
|
@ -67,6 +66,7 @@ class BirdEditForm(forms.ModelForm):
|
|||
"place": _("Fundort"),
|
||||
"status": _("Status"),
|
||||
"aviary": _("Voliere"),
|
||||
"sent_to": _("Übermittelt nach"),
|
||||
"find_circumstances": _("Fundumstände"),
|
||||
"diagnostic_finding": _("Diagnose bei Fund"),
|
||||
"costs": _("Kosten"),
|
||||
|
|
18
app/bird/migrations/0002_alter_fallenbird_costs.py
Normal file
18
app/bird/migrations/0002_alter_fallenbird_costs.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 4.2.3 on 2023-07-12 16:15
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('bird', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='fallenbird',
|
||||
name='costs',
|
||||
field=models.DecimalField(decimal_places=2, default='0.00', max_digits=5, verbose_name='Kosten'),
|
||||
),
|
||||
]
|
18
app/bird/migrations/0003_fallenbird_sent_to.py
Normal file
18
app/bird/migrations/0003_fallenbird_sent_to.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 4.2.3 on 2023-07-12 16:25
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('bird', '0002_alter_fallenbird_costs'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='fallenbird',
|
||||
name='sent_to',
|
||||
field=models.CharField(blank=True, max_length=256, null=True, verbose_name='Übersandt nach'),
|
||||
),
|
||||
]
|
|
@ -49,6 +49,9 @@ class FallenBird(models.Model):
|
|||
null=True,
|
||||
verbose_name=_("Voliere"),
|
||||
)
|
||||
sent_to = models.CharField(
|
||||
max_length=256, null=True, blank=True, verbose_name=_("Übersandt nach")
|
||||
)
|
||||
|
||||
class Meta:
|
||||
verbose_name = _("Patient")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue