diff options
author | Tim Graham <timograham@gmail.com> | 2015-07-16 08:00:29 -0400 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2015-07-21 09:19:40 -0400 |
commit | b60375d4bbb848af7950379e2f35a1a65f7a2591 (patch) | |
tree | eca0b028a0a8d3da5d7f348e1f65186146bf5eb7 /tests/model_fields/models.py | |
parent | 04e69598de75550a9227bfac353ff5606b6cbe43 (diff) | |
download | django-b60375d4bbb848af7950379e2f35a1a65f7a2591.tar.gz |
Fixed #25129 -- Made model instance defaults work with migrations (refs #24919).
Diffstat (limited to 'tests/model_fields/models.py')
-rw-r--r-- | tests/model_fields/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/model_fields/models.py b/tests/model_fields/models.py index 931468c9bf..a836cbb97e 100644 --- a/tests/model_fields/models.py +++ b/tests/model_fields/models.py @@ -26,7 +26,7 @@ class Foo(models.Model): def get_foo(): - return Foo.objects.get(id=1) + return Foo.objects.get(id=1).pk class Bar(models.Model): |