mirror of
				https://github.com/django/django.git
				synced 2025-11-04 13:39:16 +00:00 
			
		
		
		
	Fixed #16513 - Add forms import to example; thanks teraom.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16586 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		
							parent
							
								
									bbe63f07c4
								
							
						
					
					
						commit
						0350d65fa4
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -184,6 +184,8 @@ With these models, the ``ModelForm`` subclasses above would be roughly
 | 
				
			||||||
equivalent to this (the only difference being the ``save()`` method, which
 | 
					equivalent to this (the only difference being the ``save()`` method, which
 | 
				
			||||||
we'll discuss in a moment.)::
 | 
					we'll discuss in a moment.)::
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    from django import forms
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    class AuthorForm(forms.Form):
 | 
					    class AuthorForm(forms.Form):
 | 
				
			||||||
        name = forms.CharField(max_length=100)
 | 
					        name = forms.CharField(max_length=100)
 | 
				
			||||||
        title = forms.CharField(max_length=3,
 | 
					        title = forms.CharField(max_length=3,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue