Closed henriquebastos closed 10 years ago
+1 to plz fix this
https://gist.github.com/trbs/3a0d2a1756c456d5d523
Fixes:
There is still one unit test failing:
......................E...
======================================================================
ERROR: test_relabel_aliases (tests.aggregation.tests.BaseAggregateTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/private/tmp/django-aggregate-if/tests/aggregation/tests.py", line 163, in test_relabel_aliases
b = books.get(pk=1)
File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py", line 351, in get
num = len(clone)
File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py", line 122, in __len__
self._fetch_all()
File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py", line 966, in _fetch_all
self._result_cache = list(self.iterator())
File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py", line 265, in iterator
for row in compiler.results_iter():
File "/usr/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 700, in results_iter
for rows in self.execute_sql(MULTI):
File "/usr/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 786, in execute_sql
cursor.execute(sql, params)
File "/usr/local/lib/python2.7/site-packages/django/db/backends/utils.py", line 65, in execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python2.7/site-packages/django/db/utils.py", line 94, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/usr/local/lib/python2.7/site-packages/django/db/backends/utils.py", line 65, in execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py", line 485, in execute
return Database.Cursor.execute(self, query, params)
OperationalError: no such column: aggregation_author.id
----------------------------------------------------------------------
Ran 26 tests in 1.513s
FAILED (errors=1)
Destroying test database for alias 'default'...
Any progress on this? Just came across this library which we would love to use, but we're on Django 1.7...
You can always install my django17 branch directly from github: https://github.com/trbs/django-aggregate-if/tree/django17
This is what I use for Django17
Nice to know!
Forgot that @henriquebastos committed it to git here as well... So instead of my branch people could use the github version (or specific commit) as well.
The branch django-1.7
is well evolved. There's 1 failing test blocking the new release.
I didn't had the time to investigate it any further. Any help is very welcome.
If you're on a hurry you can:
pip install git+https://github.com/henriquebastos/django-aggregate-if.git@django-1.7
@trbs, @end0, @owais, @kawa-marcin,
I've applied the suggested patches to fix the call to
promote_joins
in Django 1.7.I've also updated travis and tox scripts to include Django's new version.
However due to Django's new AppConfig boot sequence, the tests are not running on Django 1.7.
I need to make all tests passing before releasing
0.5
. I plan to figure this out during the next week. Any help is very welcome.