from django import forms
from .models import Post, Comment


class PostForm(forms.ModelForm):
    content = forms.CharField(label="content", widget=forms.Textarea(attrs={
                    'rows': 7,
                    'placeholder': '오늘은 무엇을 하셨나요'
                }))
    image = forms.ImageField()
    class Meta:
        model = Post
        fields = ('content', 'image',)


class CommentForm(forms.ModelForm):
    content = forms.CharField(label="", widget=forms.TextInput(attrs={'placeholder': '댓글 입력'}))
    class Meta:
        model = Comment
        fields = ('content',)

6b69152988473b0c05210718e18a7678291d061b
<mask token>


class CommentForm(forms.ModelForm):
    content = forms.CharField(label='', widget=forms.TextInput(attrs={
        'placeholder': '댓글 입력'}))


    class Meta:
        model = Comment
        fields = 'content',

<mask token>


class PostForm(forms.ModelForm):
    <mask token>
    <mask token>


    class Meta:
        model = Post
        fields = 'content', 'image'


class CommentForm(forms.ModelForm):
    content = forms.CharField(label='', widget=forms.TextInput(attrs={
        'placeholder': '댓글 입력'}))


    class Meta:
        model = Comment
        fields = 'content',

<mask token>


class PostForm(forms.ModelForm):
    content = forms.CharField(label='content', widget=forms.Textarea(attrs=
        {'rows': 7, 'placeholder': '오늘은 무엇을 하셨나요'}))
    image = forms.ImageField()


    class Meta:
        model = Post
        fields = 'content', 'image'


class CommentForm(forms.ModelForm):
    content = forms.CharField(label='', widget=forms.TextInput(attrs={
        'placeholder': '댓글 입력'}))


    class Meta:
        model = Comment
        fields = 'content',

from django import forms
from .models import Post, Comment


class PostForm(forms.ModelForm):
    content = forms.CharField(label='content', widget=forms.Textarea(attrs=
        {'rows': 7, 'placeholder': '오늘은 무엇을 하셨나요'}))
    image = forms.ImageField()


    class Meta:
        model = Post
        fields = 'content', 'image'


class CommentForm(forms.ModelForm):
    content = forms.CharField(label='', widget=forms.TextInput(attrs={
        'placeholder': '댓글 입력'}))


    class Meta:
        model = Comment
        fields = 'content',

from django import forms
from .models import Post, Comment


class PostForm(forms.ModelForm):
    content = forms.CharField(label="content", widget=forms.Textarea(attrs={
                    'rows': 7,
                    'placeholder': '오늘은 무엇을 하셨나요'
                }))
    image = forms.ImageField()
    class Meta:
        model = Post
        fields = ('content', 'image',)


class CommentForm(forms.ModelForm):
    content = forms.CharField(label="", widget=forms.TextInput(attrs={'placeholder': '댓글 입력'}))
    class Meta:
        model = Comment
        fields = ('content',)
