1
0
mirror of https://github.com/django/django.git synced 2025-07-06 18:59:13 +00:00

queryset-refactor: Merged to [6130]

git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6330 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2007-09-15 21:15:56 +00:00
parent ff3f6df54c
commit a882e6076b
9 changed files with 2420 additions and 1569 deletions

View File

@ -122,6 +122,7 @@ answer newbie questions, and generally made Django that much better:
gandalf@owca.info gandalf@owca.info
Marc Garcia <marc.garcia@accopensys.com> Marc Garcia <marc.garcia@accopensys.com>
Baishampayan Ghose Baishampayan Ghose
Dimitris Glezos <dimitris@glezos.com>
glin@seznam.cz glin@seznam.cz
martin.glueck@gmail.com martin.glueck@gmail.com
GomoX <gomo@datafull.com> GomoX <gomo@datafull.com>

File diff suppressed because it is too large Load Diff

View File

@ -825,12 +825,12 @@ msgstr "%d 자 이상 입력해 주세요."
#: newforms/fields.py:130 #: newforms/fields.py:130
#, python-format #, python-format
msgid "Ensure this value is less than or equal to %s." msgid "Ensure this value is less than or equal to %s."
msgstr "%s 자 이하로 입력해 주세요." msgstr "%s 이하의 값을 입력해 주세요."
#: newforms/fields.py:132 #: newforms/fields.py:132
#, python-format #, python-format
msgid "Ensure this value is greater than or equal to %s." msgid "Ensure this value is greater than or equal to %s."
msgstr "%s 이상 입력해 주세요." msgstr "%s 이상의 값을 입력해 주세요."
#: newforms/fields.py:165 #: newforms/fields.py:165
msgid "Enter a valid date." msgid "Enter a valid date."

View File

@ -24,7 +24,7 @@ DATABASE_PORT = '' # Set to empty string for default. Not used with
TIME_ZONE = 'America/Chicago' TIME_ZONE = 'America/Chicago'
# Language code for this installation. All choices can be found here: # Language code for this installation. All choices can be found here:
# http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes # http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en-us' LANGUAGE_CODE = 'en-us'
SITE_ID = 1 SITE_ID = 1

View File

@ -38,6 +38,9 @@ class RequestSite(object):
def __init__(self, request): def __init__(self, request):
self.domain = self.name = request.META['SERVER_NAME'] self.domain = self.name = request.META['SERVER_NAME']
def __unicode__(self):
return self.domain
def save(self): def save(self):
raise NotImplementedError('RequestSite cannot be saved.') raise NotImplementedError('RequestSite cannot be saved.')

View File

@ -481,7 +481,7 @@ In SQL terms, that evaluates to::
WHERE NOT (pub_date > '2005-1-3' AND headline = 'Hello') WHERE NOT (pub_date > '2005-1-3' AND headline = 'Hello')
This example excludes all entries whose ``pub_date`` is later than 2005-1-3 This example excludes all entries whose ``pub_date`` is later than 2005-1-3
AND whose headline is NOT "Hello":: OR whose headline is "Hello"::
Entry.objects.exclude(pub_date__gt=datetime.date(2005, 1, 3)).exclude(headline='Hello') Entry.objects.exclude(pub_date__gt=datetime.date(2005, 1, 3)).exclude(headline='Hello')

View File

@ -1887,7 +1887,7 @@ field on the model, you could define the callback::
... else: ... else:
... return field.formfield(**kwargs) ... return field.formfield(**kwargs)
>>> ArticleForm = form_for_model(formfield_callback=my_callback) >>> ArticleForm = form_for_model(Article, formfield_callback=my_callback)
Note that your callback needs to handle *all* possible model field types, not Note that your callback needs to handle *all* possible model field types, not
just the ones that you want to behave differently to the default. That's why just the ones that you want to behave differently to the default. That's why