parent
3f96c8cd9d
commit
7862af9729
16 changed files with 222 additions and 31 deletions
|
@ -41,6 +41,17 @@ class ReviewForm(ModelForm):
|
|||
|
||||
|
||||
class CommentForm(ModelForm):
|
||||
class Meta:
|
||||
model = models.Comment
|
||||
fields = ['name', 'content']
|
||||
help_texts = {f: None for f in fields}
|
||||
labels = {
|
||||
'name': 'Title',
|
||||
'content': 'Comment',
|
||||
}
|
||||
|
||||
|
||||
class ReplyForm(ModelForm):
|
||||
class Meta:
|
||||
model = models.Status
|
||||
fields = ['content']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue