Fix more spelling
This commit is contained in:
parent
78ac75423c
commit
d041914c0f
|
@ -9,8 +9,8 @@ class ShiftAdmin(admin.ModelAdmin):
|
||||||
list_display = ('room_name', 'start_at', 'free_slots')
|
list_display = ('room_name', 'start_at', 'free_slots')
|
||||||
def room_name(self, object):
|
def room_name(self, object):
|
||||||
return object.room.name
|
return object.room.name
|
||||||
#def helpeprs(self, object):
|
#def helpers(self, object):
|
||||||
# object.helppers.count()
|
# object.helpers.count()
|
||||||
def free_slots(self, object):
|
def free_slots(self, object):
|
||||||
return object.room.required_helpers - object.shiftregistration_set.count()
|
return object.room.required_helpers - object.shiftregistration_set.count()
|
||||||
#admin.site.register(Shift)
|
#admin.site.register(Shift)
|
||||||
|
@ -19,4 +19,4 @@ class ShiftAdmin(admin.ModelAdmin):
|
||||||
admin.site.register(Helper)
|
admin.site.register(Helper)
|
||||||
admin.site.register(ShiftRegistration)
|
admin.site.register(ShiftRegistration)
|
||||||
admin.site.register(Message)
|
admin.site.register(Message)
|
||||||
admin.site.register(LoginToken)
|
admin.site.register(LoginToken)
|
||||||
|
|
|
@ -4,9 +4,9 @@ from .models import Helper
|
||||||
class RegisterForm(forms.Form):
|
class RegisterForm(forms.Form):
|
||||||
name = forms.CharField(max_length=Helper.name.field.max_length, label="Name")
|
name = forms.CharField(max_length=Helper.name.field.max_length, label="Name")
|
||||||
# actually verify phone number, lol
|
# actually verify phone number, lol
|
||||||
phone = forms.CharField(max_length=Helper.phone.field.max_length, label='Handynummer fuer Benarchrichtigungen')
|
phone = forms.CharField(max_length=Helper.phone.field.max_length, label='Handynummer für Benachrichtigungen')
|
||||||
okf = forms.BooleanField(label='Ich moechte SMS erhalten')
|
okf = forms.BooleanField(label='Ich möchte SMS erhalten')
|
||||||
|
|
||||||
# placeholder form for simple submit button use cases so we get csrf protection
|
# placeholder form for simple submit button use cases so we get csrf protection
|
||||||
class EmptyForm(forms.Form):
|
class EmptyForm(forms.Form):
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue