from django import forms

from .models import Post
from .models import Comment
from django.utils.translation import ugettext_lazy as _


class PostForm(forms.ModelForm):

    class Meta:
        model = Post
        fields = ('title', 'text',)


class CommentForm(forms.ModelForm):

	class Meta:
		model = Comment
		fields = ('text',)
		labels = {
            'text': _('Write Comment'),
        }
 