1
0
mirror of https://github.com/django/django.git synced 2025-07-04 09:49:12 +00:00

boulder-oracle-sprint: Add in a few small trunk changes that svn merge had

missed.


git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@4729 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Boulder Sprinters 2007-03-14 23:04:08 +00:00
parent 871f497e67
commit 385f99433b
9 changed files with 5 additions and 9 deletions

View File

@ -16,7 +16,7 @@ class LogEntry(models.Model):
action_time = models.DateTimeField(_('action time'), auto_now=True) action_time = models.DateTimeField(_('action time'), auto_now=True)
user = models.ForeignKey(User) user = models.ForeignKey(User)
content_type = models.ForeignKey(ContentType, blank=True, null=True) content_type = models.ForeignKey(ContentType, blank=True, null=True)
object_id = models.CharField(_('object id'), maxlength=200, blank=True, null=True) object_id = models.TextField(_('object id'), blank=True, null=True)
object_repr = models.CharField(_('object repr'), maxlength=200) object_repr = models.CharField(_('object repr'), maxlength=200)
action_flag = models.PositiveSmallIntegerField(_('action flag')) action_flag = models.PositiveSmallIntegerField(_('action flag'))
change_message = models.TextField(_('change message'), blank=True) change_message = models.TextField(_('change message'), blank=True)

View File

@ -51,7 +51,6 @@ class Session(models.Model):
session_key = models.CharField(_('session key'), maxlength=40, primary_key=True) session_key = models.CharField(_('session key'), maxlength=40, primary_key=True)
session_data = models.TextField(_('session data')) session_data = models.TextField(_('session data'))
expire_date = models.DateTimeField(_('expire date')) expire_date = models.DateTimeField(_('expire date'))
objects = SessionManager() objects = SessionManager()
class Meta: class Meta:
db_table = 'django_session' db_table = 'django_session'

View File

@ -25,7 +25,6 @@ except ImportError, e:
get_introspection_module = lambda: __import__('django.db.backends.%s.introspection' % settings.DATABASE_ENGINE, {}, {}, ['']) get_introspection_module = lambda: __import__('django.db.backends.%s.introspection' % settings.DATABASE_ENGINE, {}, {}, [''])
get_creation_module = lambda: __import__('django.db.backends.%s.creation' % settings.DATABASE_ENGINE, {}, {}, ['']) get_creation_module = lambda: __import__('django.db.backends.%s.creation' % settings.DATABASE_ENGINE, {}, {}, [''])
get_query_module = lambda: __import__('django.db.backends.%s.query' % settings.DATABASE_ENGINE, {}, {}, [''])
runshell = lambda: __import__('django.db.backends.%s.client' % settings.DATABASE_ENGINE, {}, {}, ['']).runshell() runshell = lambda: __import__('django.db.backends.%s.client' % settings.DATABASE_ENGINE, {}, {}, ['']).runshell()
connection = backend.DatabaseWrapper(**settings.DATABASE_OPTIONS) connection = backend.DatabaseWrapper(**settings.DATABASE_OPTIONS)

View File

@ -27,7 +27,6 @@ class DatabaseWrapper:
pass # close() pass # close()
supports_constraints = False supports_constraints = False
uses_case_insensitive_names = False
quote_name = complain quote_name = complain
dictfetchone = complain dictfetchone = complain
dictfetchmany = complain dictfetchmany = complain

View File

@ -146,7 +146,7 @@ def get_datetime_cast_sql():
def get_limit_offset_sql(limit, offset=None): def get_limit_offset_sql(limit, offset=None):
# Limits and offset are too complicated to be handled here. # Limits and offset are too complicated to be handled here.
# Instead, they are handled in django/db/backends/oracle/query.py. # Instead, they are handled in django/db/backends/oracle/query.py.
raise NotImplementedError return ""
def get_random_function_sql(): def get_random_function_sql():
return "DBMS_RANDOM.RANDOM" return "DBMS_RANDOM.RANDOM"

View File

@ -3,6 +3,7 @@ from django.dispatch import dispatcher
from django.conf import settings from django.conf import settings
from django.core import validators from django.core import validators
from django import oldforms from django import oldforms
from django import newforms as forms
from django.core.exceptions import ObjectDoesNotExist from django.core.exceptions import ObjectDoesNotExist
from django.utils.functional import curry from django.utils.functional import curry
from django.utils.itercompat import tee from django.utils.itercompat import tee

View File

@ -1,4 +1,4 @@
from django.db import backend, connection, get_query_module, transaction from django.db import backend, connection, transaction
from django.db.models.fields import DateField, FieldDoesNotExist from django.db.models.fields import DateField, FieldDoesNotExist
from django.db.models.fields.generic import GenericRelation from django.db.models.fields.generic import GenericRelation
from django.db.models import signals from django.db.models import signals

View File

@ -9,8 +9,6 @@ from django.db import models
class Article(models.Model): class Article(models.Model):
headline = models.CharField(maxlength=100, default='Default headline') headline = models.CharField(maxlength=100, default='Default headline')
pub_date = models.DateTimeField() pub_date = models.DateTimeField()
class Meta:
ordering = ('pub_date',)
class Meta: class Meta:
ordering = ('pub_date','headline') ordering = ('pub_date','headline')

View File

@ -155,7 +155,7 @@ False
[<Article: John's second story>, <Article: This is a test>] [<Article: John's second story>, <Article: This is a test>]
# Find all Articles for the Reporter whose ID is 1. # Find all Articles for the Reporter whose ID is 1.
# Use direct ID check, pk check, and object comparison # Use direct ID check, pk check, and object comparison
>>> Article.objects.filter(reporter__id__exact=1) >>> Article.objects.filter(reporter__id__exact=1)
[<Article: John's second story>, <Article: This is a test>] [<Article: John's second story>, <Article: This is a test>]
>>> Article.objects.filter(reporter__pk=1) >>> Article.objects.filter(reporter__pk=1)