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

Fixed #25129 -- Made model instance defaults work with migrations (refs #24919).

This commit is contained in:
Tim Graham
2015-07-16 08:00:29 -04:00
parent 04e69598de
commit b60375d4bb
5 changed files with 9 additions and 5 deletions

View File

@@ -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):