alviandk / django-voting

Automatically exported from code.google.com/p/django-voting
0 stars 0 forks source link

Vote in Django Admin is not prepoulated #19

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Vote up on something
2. Login to Django site admin and click to the Vote
3. Vote field is --- instead of 1

What is the expected output? What do you see instead?
The field is not prepopulated with the value.

What version of the product are you using? On what operating system?
Using r69 pulled with Pinax svn. Django svn r9460.

Please provide any additional information below.

Original issue reported on code.google.com by stryderjzw on 19 Dec 2008 at 7:03

GoogleCodeExporter commented 8 years ago
i fixed this by reversing the tuple choices to:

SCORES = (
    (+1, u'+1'),
    (-1, u'-1'),
)

Original comment by crypt...@gmail.com on 20 Jun 2010 at 4:17

GoogleCodeExporter commented 8 years ago
+! for merge. crypt..@gmail's solution worked for me, otherwise I got an 
'invalid choice' error in the admin interface.

Original comment by miser...@gmail.com on 11 Mar 2012 at 11:22