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

[1.8.x] Fixed mistakes in tests unveiled by version bump to 1.8.1.

This commit is contained in:
Tim Graham
2015-04-01 19:15:27 -04:00
parent b0512db5c4
commit e7366ab1f9
3 changed files with 14 additions and 13 deletions

View File

@@ -2,7 +2,6 @@ import datetime
from django.db import DJANGO_VERSION_PICKLE_KEY, models
from django.utils.translation import ugettext_lazy as _
from django.utils.version import get_major_version
def standalone_number():
@@ -27,7 +26,7 @@ nn = Numbers()
class PreviousDjangoVersionQuerySet(models.QuerySet):
def __getstate__(self):
state = super(PreviousDjangoVersionQuerySet, self).__getstate__()
state[DJANGO_VERSION_PICKLE_KEY] = str(float(get_major_version()) - 0.1) # previous major version
state[DJANGO_VERSION_PICKLE_KEY] = '1.0'
return state