summaryrefslogtreecommitdiff
path: root/tests/model_fields/models.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-07-16 08:00:29 -0400
committerTim Graham <timograham@gmail.com>2015-07-21 09:19:40 -0400
commitb60375d4bbb848af7950379e2f35a1a65f7a2591 (patch)
treeeca0b028a0a8d3da5d7f348e1f65186146bf5eb7 /tests/model_fields/models.py
parent04e69598de75550a9227bfac353ff5606b6cbe43 (diff)
downloaddjango-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.py2
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):