From d041914c0f0b8b6a28d8304a34eec98b62853435 Mon Sep 17 00:00:00 2001 From: Luca Date: Thu, 14 Apr 2022 03:21:59 +0200 Subject: [PATCH] Fix more spelling --- shiftregister/app/admin.py | 6 +++--- shiftregister/app/forms.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/shiftregister/app/admin.py b/shiftregister/app/admin.py index cad0dd6..9d9f98d 100644 --- a/shiftregister/app/admin.py +++ b/shiftregister/app/admin.py @@ -9,8 +9,8 @@ class ShiftAdmin(admin.ModelAdmin): list_display = ('room_name', 'start_at', 'free_slots') def room_name(self, object): return object.room.name - #def helpeprs(self, object): - # object.helppers.count() + #def helpers(self, object): + # object.helpers.count() def free_slots(self, object): return object.room.required_helpers - object.shiftregistration_set.count() #admin.site.register(Shift) @@ -19,4 +19,4 @@ class ShiftAdmin(admin.ModelAdmin): admin.site.register(Helper) admin.site.register(ShiftRegistration) admin.site.register(Message) -admin.site.register(LoginToken) \ No newline at end of file +admin.site.register(LoginToken) diff --git a/shiftregister/app/forms.py b/shiftregister/app/forms.py index 41b3460..95d5b8d 100644 --- a/shiftregister/app/forms.py +++ b/shiftregister/app/forms.py @@ -4,9 +4,9 @@ from .models import Helper class RegisterForm(forms.Form): name = forms.CharField(max_length=Helper.name.field.max_length, label="Name") # actually verify phone number, lol - phone = forms.CharField(max_length=Helper.phone.field.max_length, label='Handynummer fuer Benarchrichtigungen') - okf = forms.BooleanField(label='Ich moechte SMS erhalten') + phone = forms.CharField(max_length=Helper.phone.field.max_length, label='Handynummer für Benachrichtigungen') + okf = forms.BooleanField(label='Ich möchte SMS erhalten') # placeholder form for simple submit button use cases so we get csrf protection class EmptyForm(forms.Form): - pass \ No newline at end of file + pass