This repository has been archived on 2023-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
python-blog/articles/forms.py
2020-08-18 19:12:47 +02:00

12 lines
257 B
Python

from django import forms
from articles.models import Comment
class CommentForm(forms.ModelForm):
required_css_class = "required"
error_css_class = "error"
class Meta:
model = Comment
fields = ["username", "email", "content"]