mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-10-31 07:57:55 +03:00 
			
		
		
		
	Latest Modelresource example is broken. Required attribute should be set to form, not model. Is fixed.
		
			
				
	
	
		
			7 lines
		
	
	
		
			246 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
		
			246 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from django import forms
 | |
| 
 | |
| class MyForm(forms.Form):
 | |
|     foo = forms.BooleanField(required=False)
 | |
|     bar = forms.IntegerField(help_text='Must be an integer.')
 | |
|     baz = forms.CharField(max_length=32, help_text='Free text.  Max length 32 chars.')
 |