[extensions-web] ratings: Increase the max value to 5
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] ratings: Increase the max value to 5
- Date: Tue, 14 Feb 2012 20:19:56 +0000 (UTC)
commit c6a124c3943194bf7b7dd29faaaa7b3380ae299d
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Feb 14 15:19:39 2012 -0500
ratings: Increase the max value to 5
With the old jQuery script, it would send a range from 0-4. With the new
script, it sends a range from 1-5. Since the data has shifted in range,
I'm just going to leave it as is, corrupted. I'll do something when I
add a sort by rating.
sweettooth/ratings/forms.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sweettooth/ratings/forms.py b/sweettooth/ratings/forms.py
index 9325515..fd3a30c 100644
--- a/sweettooth/ratings/forms.py
+++ b/sweettooth/ratings/forms.py
@@ -17,7 +17,7 @@ class NoOpWidget(widgets.Widget):
return u''
class RatingCommentForm(CommentForm):
- rating = fields.IntegerField(min_value=-1, max_value=4,
+ rating = fields.IntegerField(min_value=-1, max_value=5,
required=False, widget=NoOpWidget())
def clean_rating(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]