Error while executing query
Posted
by iHeartDucks
on Stack Overflow
See other posts from Stack Overflow
or by iHeartDucks
Published on 2010-05-26T03:00:38Z
Indexed on
2010/05/26
3:11 UTC
Read the original article
Hit count: 288
django
|django-1.2.1
I get an error message on this query
query = "select count(*) from pgns_game where raw_moves = %s"
params = ('a',)
total_rows = self.model.objects.raw(query, params)
and it says
InvalidQuery('Raw query must include the primary key')
I am clearly missing something but I don't know what. Any ideas?
© Stack Overflow or respective owner