Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 26th, 2012  |  syntax: Python  |  size: 1.42 KB  |  views: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Traceback (most recent call last):
  2.   File "<console>", line 1, in <module>
  3.   File "/home/chris/.virtualenvs/sdev/local/lib/python2.7/site-packages/django/db/models/query.py", line 72, in __repr__
  4.     data = list(self[:REPR_OUTPUT_SIZE + 1])
  5.   File "/home/chris/.virtualenvs/sdev/local/lib/python2.7/site-packages/django/db/models/query.py", line 87, in __len__
  6.     self._result_cache.extend(self._iter)
  7.   File "/home/chris/.virtualenvs/sdev/local/lib/python2.7/site-packages/django/db/models/query.py", line 291, in iterator
  8.     for row in compiler.results_iter():
  9.   File "/home/chris/.virtualenvs/sdev/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 763, in results_iter
  10.     for rows in self.execute_sql(MULTI):
  11.   File "/home/chris/.virtualenvs/sdev/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 818, in execute_sql
  12.     cursor.execute(sql, params)
  13.   File "/home/chris/.virtualenvs/sdev/local/lib/python2.7/site-packages/django/db/backends/util.py", line 40, in execute
  14.     return self.cursor.execute(sql, params)
  15.   File "/home/chris/.virtualenvs/sdev/local/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 52, in execute
  16.     return self.cursor.execute(query, args)
  17. DatabaseError: SELECT DISTINCT ON expressions must match initial ORDER BY expressions
  18. LINE 1: SELECT DISTINCT ON ("lineups_appearance"."team_id") "lineups...
  19.                            ^
clone this paste RAW Paste Data