@@ -13,15 +13,14 @@ class RecurringShiftForm(forms.ModelForm):
13
13
ordinal = forms .IntegerField (label = _ ('Ordinal' ), min_value = 1 , max_value = 31 )
14
14
auto_create_days = forms .IntegerField (label = RecurringShift .auto_create_days .field .verbose_name ,
15
15
help_text = RecurringShift .auto_create_days .field .help_text ,
16
- initial = RecurringShift .auto_create_days .field .default ,
17
16
min_value = settings .AUTO_CREATE_DAYS_MIN ,
18
17
max_value = settings .AUTO_CREATE_DAYS_MAX )
19
18
20
19
class Meta :
21
20
model = RecurringShift
22
- fields = ['name' , 'organization' , 'time_frame_field' , 'week_day_field' , 'month_field' ,
23
- 'first_occurrence' , 'color ' , 'template ' , 'weekend_handling_field ' , 'weekend_warning ' ,
24
- 'holiday_handling_field' , 'holiday_warning' ]
21
+ fields = ['name' , 'organization' , 'time_frame_field' , 'ordinal' , ' week_day_field' , 'month_field' ,
22
+ 'first_occurrence' , 'auto_create_days ' , 'color ' , 'template ' , 'weekend_handling_field ' ,
23
+ 'weekend_warning' , ' holiday_handling_field' , 'holiday_warning' ]
25
24
26
25
def __init__ (self , * args : Any , ** kwargs ) -> None :
27
26
super ().__init__ (* args , ** kwargs )
0 commit comments