Unable to cast vote for talk during review

40 views
Skip to first unread message

Kr Ace Kumar Ramaraju

unread,
Oct 26, 2014, 9:52:17 AM10/26/14
to pinax-s...@googlegroups.com
Hi

I am using default template and added talks, created reviewers group, assigned reviewers via management command.
After casting the vote when form is submitted following error message is thrown

Traceback (most recent call last):
  File "/Users/kracekumar/Envs/fooconf/lib/python2.7/site-packages/django/contrib/staticfiles/handlers.py", line 64, in __call__
    return self.application(environ, start_response)
  File "/Users/kracekumar/Envs/fooconf/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 187, in __call__
    response = self.get_response(request)
  File "/Users/kracekumar/Envs/fooconf/lib/python2.7/site-packages/django/core/handlers/base.py", line 199, in get_response
    response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
  File "/Users/kracekumar/Envs/fooconf/lib/python2.7/site-packages/django/core/handlers/base.py", line 236, in handle_uncaught_exception
    return debug.technical_500_response(request, *exc_info)
  File "/Users/kracekumar/Envs/fooconf/lib/python2.7/site-packages/django_extensions/management/technical_response.py", line 5, in null_technical_500_response
    six.reraise(exc_type, exc_value, tb)
  File "/Users/kracekumar/Envs/fooconf/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/Users/kracekumar/Envs/fooconf/lib/python2.7/site-packages/django/db/transaction.py", line 394, in inner
    return func(*args, **kwargs)
  File "/Users/kracekumar/Envs/fooconf/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 22, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/Users/kracekumar/Envs/fooconf/src/symposion/symposion/reviews/views.py", line 188, in review_detail
    review.save()
  File "/Users/kracekumar/Envs/fooconf/src/symposion/symposion/reviews/models.py", line 124, in save
    self.proposal.result.update_vote(self.vote)
  File "/Users/kracekumar/Envs/fooconf/src/symposion/symposion/reviews/models.py", line 272, in update_vote
    model._default_manager.filter(pk=self.pk).update(score=ProposalScoreExpression())
  File "/Users/kracekumar/Envs/fooconf/lib/python2.7/site-packages/django/db/models/query.py", line 583, in update
    rows = query.get_compiler(self.db).execute_sql(CURSOR)
  File "/Users/kracekumar/Envs/fooconf/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 1004, in execute_sql
    cursor = super(SQLUpdateCompiler, self).execute_sql(result_type)
  File "/Users/kracekumar/Envs/fooconf/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 775, in execute_sql
    sql, params = self.as_sql()
  File "/Users/kracekumar/Envs/fooconf/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 967, in as_sql
    (field.__class__.__name__, val.__class__.__name__))

TypeError: Database is trying to update a relational field of type DecimalField with a value of type ProposalScoreExpression. Make sure you are setting the correct relations

Any help ?

Carl Karsten

unread,
Oct 26, 2014, 8:34:13 PM10/26/14
to pinax-s...@googlegroups.com
This sounds familiar.
What database (postgresql, mysql..) are you using?



--
You received this message because you are subscribed to the Google Groups "pinax-symposion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pinax-symposi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Carl K

kracekumar ramaraju

unread,
Oct 27, 2014, 4:07:36 AM10/27/14
to pinax-s...@googlegroups.com
On Mon, Oct 27, 2014 at 6:03 AM, Carl Karsten <ca...@personnelware.com> wrote:
This sounds familiar.
What database (postgresql, mysql..) are you using?



Tried with postgres and sqlite3, both gives same issue. I made few tweaks to make it work on django 1.7.
 

--
You received this message because you are subscribed to a topic in the Google Groups "pinax-symposion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pinax-symposion/ryXLRpTiDns/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pinax-symposi...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Thanks & Regards

kracekumar
"Talk is cheap, show me the code" -- Linus Torvalds

sheila miguez

unread,
May 14, 2015, 1:19:06 PM5/14/15
to pinax-s...@googlegroups.com

On Mon, Oct 27, 2014 at 3:07 AM, kracekumar ramaraju <kracethe...@gmail.com> wrote:
Tried with postgres and sqlite3, both gives same issue. I made few tweaks to make it work on django 1.7.

What tweaks did you do? We've got a symposion site for pydata Seattle and London, and see the same problem. We started with the trunk of symposion.

https://github.com/pydata/conf_site/issues/57#issuecomment-102105060


sheila miguez

unread,
May 14, 2015, 1:34:34 PM5/14/15
to pinax-s...@googlegroups.com
This is fixed in euroscipy/symposion so I opened an issue to have it fixed in the official project. https://github.com/pinax/symposion/issues/72
Reply all
Reply to author
Forward
0 new messages