from django import forms

from .models import Post

class PostForm(forms.ModelForm):
    class Meta:
        model=Post
        fields=['title','text',]
        widgets={'text':forms.Textarea(attrs={'cols':80})}

b5ce4900c9ae51a1bf6e6d3f5a012ba7d42c678f
<mask token>

<mask token>


class PostForm(forms.ModelForm):


    class Meta:
        model = Post
        fields = ['title', 'text']
        widgets = {'text': forms.Textarea(attrs={'cols': 80})}

from django import forms
from .models import Post


class PostForm(forms.ModelForm):


    class Meta:
        model = Post
        fields = ['title', 'text']
        widgets = {'text': forms.Textarea(attrs={'cols': 80})}

from django import forms

from .models import Post

class PostForm(forms.ModelForm):
    class Meta:
        model=Post
        fields=['title','text',]
        widgets={'text':forms.Textarea(attrs={'cols':80})}
