You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
	
	
		
			
	
		
		
			
				
				
					
						
						
						
							|  | from django import forms
 | 
						
						
						
							|  | from comment.models import Comment
 | 
						
						
						
							|  | 
 | 
						
						
						
							|  | 
 | 
						
						
						
							|  | class CommentForm(forms.ModelForm):
 | 
						
						
						
							|  |     content = forms.CharField(error_messages={'required': '不能为空',},
 | 
						
						
						
							|  |         widget=forms.Textarea(attrs = {'placeholder': '请输入评论内容' })
 | 
						
						
						
							|  |     )
 | 
						
						
						
							|  | 
 | 
						
						
						
							|  |     class Meta:
 | 
						
						
						
							|  |         model = Comment
 | 
						
						
						
							|  |         fields = ['content']
 | 
						
						
						
							|  | 
 |