Clickable star rating form
This commit is contained in:
parent
07191a0bc9
commit
3aeeaa80e7
5 changed files with 36 additions and 8 deletions
|
@ -35,11 +35,10 @@ class RatingForm(ModelForm):
|
|||
class ReviewForm(ModelForm):
|
||||
class Meta:
|
||||
model = models.Review
|
||||
fields = ['name', 'rating', 'content']
|
||||
fields = ['name', 'content']
|
||||
help_texts = {f: None for f in fields}
|
||||
labels = {
|
||||
'name': 'Title',
|
||||
'rating': 'Rating (out of 5)',
|
||||
'content': 'Review',
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue