Fix labeling on GustRaidResponseForm.

This commit is contained in:
Casper V. Kristensen 2020-09-24 21:09:16 +02:00
parent b118881a13
commit fad08758ce
Signed by: caspervk
GPG key ID: 289CA03790535054

View file

@ -72,9 +72,10 @@ class GuestRaidResponseForm(ModelForm):
class Meta: class Meta:
model = RaidResponse model = RaidResponse
fields = ["guest_name", "guest_klass", "role", "status"] fields = ["guest_name", "guest_klass", "role", "status"]
labels = {
def __init__(self, *args, **kwargs): "guest_name": "Name",
super().__init__(*args, **kwargs) "guest_klass": "Class"
}
helper = FormHelper() helper = FormHelper()
helper.layout = Layout( helper.layout = Layout(