~ubuntu-branches/ubuntu/quantal/python-django/quantal-security

« back to all changes in this revision

Viewing changes to tests/regressiontests/model_regress/models.py

  • Committer: Bazaar Package Importer
  • Author(s): Chris Lamb
  • Date: 2010-05-21 07:52:55 UTC
  • mfrom: (1.3.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 28.
  • Revision ID: james.westby@ubuntu.com-20100521075255-ii78v1dyfmyu3uzx
Tags: upstream-1.2
ImportĀ upstreamĀ versionĀ 1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
import datetime
3
3
 
4
4
from django.conf import settings
5
 
from django.db import models
 
5
from django.db import models, DEFAULT_DB_ALIAS
6
6
from django.utils import tzinfo
7
7
 
8
8
CHOICES = (
149
149
 
150
150
"""}
151
151
 
152
 
if settings.DATABASE_ENGINE not in ("mysql", "oracle"):
 
152
if settings.DATABASES[DEFAULT_DB_ALIAS]['ENGINE'] not in (
 
153
        "django.db.backends.mysql",
 
154
        "django.db.backends.oracle"):
153
155
    __test__["timezone-tests"] = """
154
156
# Saving an updating with timezone-aware datetime Python objects. Regression
155
157
# test for #10443.
167
169
1
168
170
 
169
171
"""
170