1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Made F deconstruction omit 'expressions' in the path.

This commit is contained in:
Adam Johnson
2021-02-25 09:52:59 +00:00
committed by Mariusz Felisiak
parent 8806e8809e
commit 45f48ed4f7
2 changed files with 2 additions and 2 deletions

View File

@@ -991,7 +991,7 @@ class FTests(SimpleTestCase):
def test_deconstruct(self):
f = F('name')
path, args, kwargs = f.deconstruct()
self.assertEqual(path, 'django.db.models.expressions.F')
self.assertEqual(path, 'django.db.models.F')
self.assertEqual(args, (f.name,))
self.assertEqual(kwargs, {})