mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-10-31 15:50:03 +01:00 
			
		
		
		
	Compare commits
	
		
			2 Commits
		
	
	
		
			8de99dd3f4
			...
			1bee0de9fd
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 1bee0de9fd | ||
|  | a209e0d366 | 
| @@ -44,6 +44,7 @@ class ProfileForm(forms.ModelForm): | |||||||
|     """ |     """ | ||||||
|     A form for the extras field provided by the :model:`member.Profile` model. |     A form for the extras field provided by the :model:`member.Profile` model. | ||||||
|     """ |     """ | ||||||
|  |     # Remove widget=forms.HiddenInput() if you want to use report frequency. | ||||||
|     report_frequency = forms.IntegerField(required=False, initial=0, label=_("Report frequency"), widget=forms.HiddenInput()) |     report_frequency = forms.IntegerField(required=False, initial=0, label=_("Report frequency"), widget=forms.HiddenInput()) | ||||||
|  |  | ||||||
|     last_report = forms.DateTimeField(required=False, disabled=True, label=_("Last report date")) |     last_report = forms.DateTimeField(required=False, disabled=True, label=_("Last report date")) | ||||||
| @@ -77,7 +78,7 @@ class ProfileForm(forms.ModelForm): | |||||||
|         model = Profile |         model = Profile | ||||||
|         fields = '__all__' |         fields = '__all__' | ||||||
|         # Remove ml_[asso]_registration from exclude if the concerned association uses nk20 to manage its mailing list. |         # Remove ml_[asso]_registration from exclude if the concerned association uses nk20 to manage its mailing list. | ||||||
|         exclude = ('user', 'email_confirmed', 'registration_valid', 'ml_sport_registration', "ml_events_registration", ) |         exclude = ('user', 'email_confirmed', 'registration_valid', 'ml_sport_registration', ) | ||||||
|  |  | ||||||
|  |  | ||||||
| class ImageForm(forms.Form): | class ImageForm(forms.Form): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user