supporters: Default to "monthly" Sustainer
Also remove unused `template_name` property on `SustainerForm`. That template didn't exist.
This commit is contained in:
		
							parent
							
								
									7c47a85c5b
								
							
						
					
					
						commit
						bdd883490f
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -46,8 +46,6 @@ class SustainerForm(forms.ModelForm): | |||
|     # To pre-fill the price option buttons in the case of server-side validation errors. | ||||
|     amount_option = forms.CharField(required=False) | ||||
| 
 | ||||
|     template_name = 'supporters/sustainer_form.html' | ||||
| 
 | ||||
|     MONTH_OPTIONS = [12, 23, 45, 87] | ||||
|     YEAR_OPTIONS = [128, 256, 512, 1024] | ||||
|     MONTH_MINIMUM = 10 | ||||
|  | @ -95,6 +93,7 @@ class SustainerForm(forms.ModelForm): | |||
|         self.renderer = SustainerFormRenderer() | ||||
| 
 | ||||
|         self.fields['recurring'].label = '' | ||||
|         self.fields['recurring'].initial = 'month' | ||||
|         self.fields['amount'].initial = self.YEAR_OPTIONS[0] | ||||
|         self.fields['tshirt_size'].widget.attrs['x-model'] = 'tshirt_size' | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue