Fix more spelling

pull/1/head
Luca 3 years ago
parent 78ac75423c
commit d041914c0f

@ -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)

@ -4,8 +4,8 @@ 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):

Loading…
Cancel
Save