AH
Size: a a a
AH
AH
AH
AK
АМ
АМ
PZ
АМ
class PostForm(forms.ModelForm):
class Meta:
model = Post
fields = ['title', 'author', 'slug', 'body', 'tags']
widgets = {
'title': forms.TextInput(attrs={'class': 'form-control'}),
'author': forms.TextInput(attrs={'class': 'form-control'}),
'slug': forms.TextInput(attrs={'class': 'form-control'}),
'body': forms.Textarea(attrs={'class': 'form-control'}),
'tags': forms.SelectMultiple(attrs={'class': 'form-control'}),
}
АМ
АМ
i
i
i
AG
i
i
АМ
АМ
AG
initial={'author'=request.user.id}
E