Adds commenting
This commit is contained in:
parent
ff5217efd8
commit
9194b3c50d
8 changed files with 89 additions and 10 deletions
|
@ -40,8 +40,17 @@ class ReviewForm(ModelForm):
|
|||
}
|
||||
|
||||
|
||||
class CommentForm(ModelForm):
|
||||
class Meta:
|
||||
model = models.Status
|
||||
fields = ['content']
|
||||
help_texts = {f: None for f in fields}
|
||||
labels = {'content': 'Comment'}
|
||||
|
||||
|
||||
class EditUserForm(ModelForm):
|
||||
class Meta:
|
||||
model = models.User
|
||||
fields = ['avatar', 'name', 'summary']
|
||||
help_texts = {f: None for f in fields}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue