summaryrefslogtreecommitdiff
path: root/tests/forms_tests/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/forms_tests/models.py
parent04e69598de75550a9227bfac353ff5606b6cbe43 (diff)
Fixed #25129 -- Made model instance defaults work with migrations (refs #24919).
Diffstat (limited to 'tests/forms_tests/models.py')
-rw-r--r--tests/forms_tests/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/forms_tests/models.py b/tests/forms_tests/models.py
index 7eb4792213..d7e9d583ff 100644
--- a/tests/forms_tests/models.py
+++ b/tests/forms_tests/models.py
@@ -72,7 +72,7 @@ class ChoiceOptionModel(models.Model):
def choice_default():
- return ChoiceOptionModel.objects.get_or_create(name='default')[0]
+ return ChoiceOptionModel.objects.get_or_create(name='default')[0].pk
def choice_default_list():