I get an error message for this request
query = "select count(*) from pgns_game where raw_moves = %s" params = ('a',) total_rows = self.model.objects.raw(query, params)
and he says
InvalidQuery('Raw query must include the primary key')
Something is obviously missing me, but I do not know what. Any ideas?
source share