ask/celery — Issue #624: Django 1.4b1 got an unexpected keyword argument 'connection'
Author: rthill
Created: 2012-02-28 10:59:58+00:00
State: open

Seems like there is an incompatibility between Django 1.4 Beta 1 and Celery 2.5.

Receiving for every task the follow traceback:

Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/celery-2.5.0-py2.7.egg/celery/execute/trace.py", line 178, in trace_task store_result(uuid, retval, SUCCESS)
File "/usr/lib/python2.7/site-packages/celery-2.5.0-py2.7.egg/celery/backends/base.py", line 229, in store_result return self._store_result(task_id, result, status, traceback, **kwargs)
File "/usr/lib/python2.7/site-packages/django_celery-2.5.0-py2.7.egg/djcelery/backends/database.py", line 27, in _store_result traceback=traceback)
File "/usr/lib/python2.7/site-packages/django_celery-2.5.0-py2.7.egg/djcelery/managers.py", line 41, in _inner return fun(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/django_celery-2.5.0-py2.7.egg/djcelery/managers.py", line 169, in store_result "traceback": traceback})
File "/usr/lib/python2.7/site-packages/django_celery-2.5.0-py2.7.egg/djcelery/managers.py", line 83, in update_or_create return self.get_query_set().update_or_create(**kwargs)
File "/usr/lib/python2.7/site-packages/django_celery-2.5.0-py2.7.egg/djcelery/managers.py", line 67, in update_or_create obj, created = self.get_or_create(**kwargs)
File "/usr/lib/python2.7/site-packages/django/db/models/query.py", line 449, in get_or_create obj.save(force_insert=True, using=self.db)
File "/usr/lib/python2.7/site-packages/django/db/models/base.py", line 464, in save self.save_base(using=using, force_insert=force_insert, force_update=force_update)
File "/usr/lib/python2.7/site-packages/django/db/models/base.py", line 552, in save_base result = manager._insert([self], fields=fields, return_id=update_pk, using=using, raw=raw)
File "/usr/lib/python2.7/site-packages/django/db/models/manager.py", line 203, in _insert return insert_query(self.model, objs, fields, **kwargs)
File "/usr/lib/python2.7/site-packages/django/db/models/query.py", line 1576, in insert_query return query.get_compiler(using=using).execute_sql(return_id)
File "/usr/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 909, in execute_sql for sql, params in self.as_sql():
File "/usr/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 872, in as_sql for obj in self.query.objs
File "/usr/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 292, in get_db_prep_save prepared=False) TypeError: get_db_prep_value() got an unexpected keyword argument 'connection'