Re: Exception Value: Could not parse the remainder: '().order_by('-votes')' from 'poll.altword_set.all().order_by('-votes')'

2013-08-08 Thread Pepsodent Cola
: > > * Option-2 = 50 votes > * Option-1 = 18 votes > > > 4.) > In Python shell I managed to accomplish that by doing like so: > > >>> p = Word.objects.get(pk=1) > >>> p > > >>> p.altword_set.all() > [, ] > > >>> *p.al

Re: Exception Value: Could not parse the remainder: '().order_by('-votes')' from 'poll.altword_set.all().order_by('-votes')'

2013-08-07 Thread Ramiro Morales
teSyntaxError > Exception Value: > > Could not parse the remainder: '().order_by('-votes')' from > 'poll.altword_set.all().order_by('-votes')' > > > > How do I write the correct syntax for ordering my list? You can't. The temp

Re: Exception Value: Could not parse the remainder: '().order_by('-votes')' from 'poll.altword_set.all().order_by('-votes')'

2013-08-07 Thread Pepsodent Cola
gt; How come when I replace this: > {% for choice2 in poll.altword_set.all %} > to this: > {% for choice2 in poll.altword_set.all().order_by('-votes') %} > then I get this error: > > Exception Type: TemplateSyntaxError Exception Value: > > Could not parse the re

Exception Value: Could not parse the remainder: '().order_by('-votes')' from 'poll.altword_set.all().order_by('-votes')'

2013-08-07 Thread Pepsodent Cola
-votes') %} then I get this error: Exception Type: TemplateSyntaxError Exception Value: Could not parse the remainder: '().order_by('-votes')' from 'poll.altword_set.all().order_by('-votes')' How do I write the correct syntax for ordering my list? -- You