We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7132ff6 commit 5768618Copy full SHA for 5768618
1 file changed
bakeup/users/forms.py
@@ -68,6 +68,7 @@ def __init__(self, request, *args, **kwargs):
68
help_text="Bitte wähle eine Abholstelle aus.",
69
empty_label=None,
70
)
71
+ self.fields["point_of_sale"].label_from_instance = lambda obj: f"{obj.name}"
72
if PointOfSale.objects.filter(is_primary=True).exists():
73
self.fields["point_of_sale"].initial = PointOfSale.objects.get(
74
is_primary=True
0 commit comments