You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.
Lorsqu'on fait un nouveau vote, ou qu'on change notre vote, une erreur s'affiche
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
Environment:
Request Method: POST
Request URL: http://localhost:8000/reviews/review/3/
Django Version: 1.7.8
Python Version: 2.7.9
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.messages',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.staticfiles',
'django.contrib.humanize',
'bootstrapform',
'pinax_theme_bootstrap',
'account',
'easy_thumbnails',
'eventlog',
'markitup',
'metron',
'reversion',
'sitetree',
'taggit',
'timezones',
'symposion',
'symposion.boxes',
'symposion.cms',
'symposion.conference',
'symposion.proposals',
'symposion.reviews',
'symposion.schedule',
'symposion.speakers',
'symposion.sponsorship',
'symposion.teams',
'cdl',
'cdl.proposals']
Installed Middleware:
['django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'reversion.middleware.RevisionMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware']
Traceback:
File "/home/manue/.virtualenvs/symposion/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
111. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/manue/.virtualenvs/symposion/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
21. return view_func(request, *args, **kwargs)
File "/home/manue/.virtualenvs/symposion/src/symposion/symposion/reviews/views.py" in review_detail
203. review.save()
File "/home/manue/.virtualenvs/symposion/src/symposion/symposion/reviews/models.py" in save
130. self.proposal.result.update_vote(self.vote, previous=vote.vote)
File "/home/manue/.virtualenvs/symposion/src/symposion/symposion/reviews/models.py" in update_vote
281. model._default_manager.filter(pk=self.pk).update(score=ProposalScoreExpression())
File "/home/manue/.virtualenvs/symposion/local/lib/python2.7/site-packages/django/db/models/query.py" in update
583. rows = query.get_compiler(self.db).execute_sql(CURSOR)
File "/home/manue/.virtualenvs/symposion/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py" in execute_sql
1005. cursor = super(SQLUpdateCompiler, self).execute_sql(result_type)
File "/home/manue/.virtualenvs/symposion/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py" in execute_sql
776. sql, params = self.as_sql()
File "/home/manue/.virtualenvs/symposion/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py" in as_sql
968. (field.__class__.__name__, val.__class__.__name__))
Exception Type: TypeError at /reviews/review/3/
Exception Value: 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
The text was updated successfully, but these errors were encountered:
Lorsqu'on fait un nouveau vote, ou qu'on change notre vote, une erreur s'affiche
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
The text was updated successfully, but these errors were encountered: