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:
|
class Meta:
|
||||||
widgets = {
|
widgets = {
|
||||||
"date_found": DateInput(
|
"date_found": DateInput(format="%Y-%m-%d", attrs={"value": date.today})
|
||||||
format="%Y-%m-%d",
|
}
|
||||||
attrs={
|
|
||||||
"value": date.today})}
|
|
||||||
model = FallenBird
|
model = FallenBird
|
||||||
fields = [
|
fields = [
|
||||||
"bird_identifier",
|
"bird_identifier",
|
||||||
|
@ -57,6 +55,7 @@ class BirdEditForm(forms.ModelForm):
|
||||||
"place",
|
"place",
|
||||||
"status",
|
"status",
|
||||||
"aviary",
|
"aviary",
|
||||||
|
"sent_to",
|
||||||
"find_circumstances",
|
"find_circumstances",
|
||||||
"diagnostic_finding",
|
"diagnostic_finding",
|
||||||
"costs",
|
"costs",
|
||||||
|
@ -67,6 +66,7 @@ class BirdEditForm(forms.ModelForm):
|
||||||
"place": _("Fundort"),
|
"place": _("Fundort"),
|
||||||
"status": _("Status"),
|
"status": _("Status"),
|
||||||
"aviary": _("Voliere"),
|
"aviary": _("Voliere"),
|
||||||
|
"sent_to": _("Übermittelt nach"),
|
||||||
"find_circumstances": _("Fundumstände"),
|
"find_circumstances": _("Fundumstände"),
|
||||||
"diagnostic_finding": _("Diagnose bei Fund"),
|
"diagnostic_finding": _("Diagnose bei Fund"),
|
||||||
"costs": _("Kosten"),
|
"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,
|
null=True,
|
||||||
verbose_name=_("Voliere"),
|
verbose_name=_("Voliere"),
|
||||||
)
|
)
|
||||||
|
sent_to = models.CharField(
|
||||||
|
max_length=256, null=True, blank=True, verbose_name=_("Übersandt nach")
|
||||||
|
)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
verbose_name = _("Patient")
|
verbose_name = _("Patient")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue