We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d83203c commit 536a5caCopy full SHA for 536a5ca
django/contrib/mongodb/base.py
@@ -10,6 +10,7 @@
10
class DatabaseFeatures(object):
11
interprets_empty_strings_as_nulls = False
12
sql_nulls = False
13
+ related_fields_match_type = False
14
15
16
class DatabaseOperations(object):
tests/regressiontests/mongodb/tests.py
@@ -82,6 +82,9 @@ def test_foreignkey(self):
82
self.assertEqual(b.current_group_id, e.pk)
83
self.assertFalse(hasattr(b, "_current_group_cache"))
84
self.assertEqual(b.current_group, e)
85
+
86
+ self.assertEqual(Artist.objects.get(current_group=e), b)
87
+ self.assertEqual(Artist.objects.get(current_group__id=e.pk), b)
88
89
def test_exists(self):
90
self.assertFalse(Artist.objects.filter(name="Brian May").exists())
0 commit comments