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

13 lines
257 B
Python
Raw Normal View History

2020-08-18 18:49:41 +02:00
from django import forms
from articles.models import Comment
class CommentForm(forms.ModelForm):
2020-08-18 19:12:47 +02:00
required_css_class = "required"
error_css_class = "error"
2020-08-18 18:49:41 +02:00
class Meta:
model = Comment
fields = ["username", "email", "content"]