(self)
| 299 | self.assertSuccessfulRawQuery(Author, query, authors, translations=translations) |
| 300 | |
| 301 | def test_missing_fields(self): |
| 302 | query = "SELECT id, first_name, dob FROM raw_query_author" |
| 303 | for author in Author.objects.raw(query): |
| 304 | self.assertIsNotNone(author.first_name) |
| 305 | # last_name isn't given, but it will be retrieved on demand |
| 306 | self.assertIsNotNone(author.last_name) |
| 307 | |
| 308 | def test_missing_fields_without_PK(self): |
| 309 | query = "SELECT first_name, dob FROM raw_query_author" |