Jacob Kaplan-Moss
|
f2aa1b93e0
|
Fixed silly typo in [4651].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4563 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-02-23 23:05:25 +00:00 |
Jacob Kaplan-Moss
|
16bd0aa991
|
Fixed #3541: queryset.count() now respects the queryset cache.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4561 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-02-23 20:58:28 +00:00 |
Adrian Holovaty
|
abc949f584
|
Changed database PhoneNumberField to use USPhoneNumberField as its newforms form field (instead of IntegerField)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4556 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-02-21 05:59:46 +00:00 |
Adrian Holovaty
|
e56934b9b9
|
Fixed #3257 -- Added newforms ModelChoiceField and ModelMultipleChoiceField, which are now used by form_for_model() and form_for_instance(). Thanks for the patch, Honza Kral, floguy@gmail.com and kilian.cavalotti
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4547 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-02-20 02:42:07 +00:00 |
Malcolm Tredinnick
|
babc0793e3
|
Fixed behaviour of admin interface (and AddManipulator) when
min/max_num_in_admin is specified without num_in_admin. A consequence of
changes in [4500].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4542 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-02-19 04:18:46 +00:00 |
Adrian Holovaty
|
4c4209b144
|
Changed __year lookup to use a BETWEEN SQL statement instead of comparing the result of EXTRACT(year). This should be more efficient.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4505 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-02-14 06:32:32 +00:00 |
Malcolm Tredinnick
|
ff46f0fbcf
|
Fixed #3394 -- Made min_num_in_admin be respected on new object creation. Patch
from torne-django@wolfpuppy.org.uk.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4500 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-02-13 06:27:28 +00:00 |
Malcolm Tredinnick
|
f41e2b7837
|
Updated [4497] to use something closer to the English language in the comment.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4498 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-02-13 06:07:55 +00:00 |
Malcolm Tredinnick
|
ba9649f966
|
Fixed #3377 -- Fixed subtle infinite recursion bug in LazyDate objects. Thanks
to brut.alll@gmail.com.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4497 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-02-13 06:06:09 +00:00 |
Malcolm Tredinnick
|
d123588184
|
#fixed #2256 -- Made count() interact with slicing on QuerySets. Patch from
SmileyChris.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4488 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-02-12 00:16:17 +00:00 |
Malcolm Tredinnick
|
6c4757729b
|
Revert [4485] in order to fix accidental mod_python breakage. Refs #2920.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4486 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-02-11 23:50:35 +00:00 |
Russell Keith-Magee
|
0e924c70b1
|
Refs #2920 -- Replaced implicit uses of _() with explicit imports or calls to gettext(). At some point post 0.96, we need to remove the calls that put _ into the builtins.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4485 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-02-11 06:20:52 +00:00 |
Adrian Holovaty
|
007f17d63e
|
Fixed #3463 -- EmptyQuerySet's iterator() now returns a generator. Thanks, Gary Wilson
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4475 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-02-10 05:38:38 +00:00 |
Malcolm Tredinnick
|
e57ce6b157
|
Fixed #2348 -- Improved error reporting when query filter arguments are
misspelt. Variation on a patch from Karen Tracey.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4470 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-02-10 03:39:56 +00:00 |
Russell Keith-Magee
|
4ccdf127d0
|
Fixes #3447, Refs #2160 -- Reverting change [4459] because it breaks admin. Apologies for the inconvenience, guys.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4463 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-02-07 22:56:53 +00:00 |
Russell Keith-Magee
|
795de3a67c
|
Fixed #2160 -- Modified object save logic to check for ``pk is None``, rather than ``bool(pk) == False``. This allows primary keys to take a value of 0. Thanks for the report, fgutierrez@aureal.com.pe.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4459 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-02-04 00:54:30 +00:00 |
Adrian Holovaty
|
d28a63cc00
|
Fixed #3389 -- Many-to-many sets can now be assigned with primary key values
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4448 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-01-29 16:09:25 +00:00 |
Adrian Holovaty
|
829e4c70f8
|
newforms: Changed database Field formfield() methods to pass help_text to the formfield help_text
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4442 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-01-28 22:36:02 +00:00 |
Russell Keith-Magee
|
54feaca70f
|
Fixed #3098 -- Added db_table parameter to m2m fields, allowing the specification of a custom table name for the m2m table. Thanks, Wolfram Kriesing.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4429 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-01-25 13:47:55 +00:00 |
Russell Keith-Magee
|
12ad69c0b4
|
Fixed #3215, #3081, #2749 -- Fixed problem with mistaken deletion of objects when a GenericRelation is involved. Thanks to Thomas Steinacher for helping to narrow down the problem (#3215), and Alex Dedul (#3081) for the starting point of a working patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4428 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-01-25 11:24:17 +00:00 |
Adrian Holovaty
|
13280259a8
|
Fixed #3283 -- Added support for empty QuerySets via none() method. Thanks for the patch, medhat
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4394 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-01-23 02:11:08 +00:00 |
Adrian Holovaty
|
2e042f33e3
|
Changed database Field formfield() methods to take arbitrary kwargs, which are passed directly into the given Field constructor
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4389 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-01-22 06:32:14 +00:00 |
Adrian Holovaty
|
963ccd7cb4
|
Fixed #3267 -- newforms: Changed database TextField to render as Textarea in form_for_model() forms. Thanks for the patch, Philipp Keller
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4305 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-01-10 23:34:37 +00:00 |
Jacob Kaplan-Moss
|
f6390e8983
|
Fixed #1477: URLFields now accept a maxlength parameter. Thanks, Matt Croydon.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4295 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-01-08 20:28:31 +00:00 |
Russell Keith-Magee
|
ddb9b7d57a
|
Fixed #2473 -- Added special case for '__in=[]' (empty set) queries, because 'WHERE attr IN ()' is invalid SQL on many backends. Thanks, Gary Wilson.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4283 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-01-04 04:00:16 +00:00 |
Adrian Holovaty
|
f21cbb40b2
|
Fixed #3151 -- Improved MySQL backend not to send 'SET NAMES utf8' before every query. Thanks for the patch, smurf@smurf.noris.de
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4267 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-30 07:21:01 +00:00 |
Adrian Holovaty
|
b9fdf9abb8
|
newforms: Got form_for_instance() to select initial ManyToManyField values properly
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4261 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-30 00:12:02 +00:00 |
Adrian Holovaty
|
d681b084c3
|
Fixed #3205 -- Fixed bug in custom postgresql executemany wrapper. Thanks for reporting, jeffreyz@broadpark.no
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4257 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-29 19:01:29 +00:00 |
Adrian Holovaty
|
34dce706ee
|
Added value_from_object method to db Field class
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4252 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-28 02:27:14 +00:00 |
Adrian Holovaty
|
f974b1bb5a
|
Negligible style fix to db/models/fields/__init__.py
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4251 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-28 02:20:29 +00:00 |
Adrian Holovaty
|
71ce11f617
|
newforms: Implemented form_for_instance(). The resulting Form class does not yet have a method that saves the changes
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4250 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-28 01:16:29 +00:00 |
Adrian Holovaty
|
016d75cc7f
|
newforms: Implemented formfield() for database OneToOneField class. Not sure about this one, but one-to-one fields are eventually going to be refactored so it's not a big deal if it doesn't work
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4248 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-27 05:27:47 +00:00 |
Adrian Holovaty
|
6a75c8a52e
|
newforms: Implemented formfield() for database ForeignKey class and added unit tests
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4247 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-27 05:23:21 +00:00 |
Adrian Holovaty
|
d853278253
|
newforms: Implemented formfield() for database ManyToManyField class and added unit tests
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4246 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-27 05:15:22 +00:00 |
Adrian Holovaty
|
252606c711
|
Fixed #3115 -- Changed postgresql backend to convert all Unicode strings to bytestrings according to DEFAULT_CHARSET. This is necessary because psycopg1 does not apply database quoting to Unicode strings
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4244 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-27 05:14:02 +00:00 |
Russell Keith-Magee
|
64a2718f6c
|
Refactored workhorse methods on m2m descriptors. Modified _add to check for the type of incoming objects (to match existing _remove implementation), and modified _remove to use a single query rather than 1 per object (to match existing _add implementation).
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4233 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-20 14:06:27 +00:00 |
Russell Keith-Magee
|
e859f108f1
|
Fixed problem with assiging an empty list to m2m related descriptors, introduced in [4231].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4232 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-20 13:57:17 +00:00 |
Russell Keith-Magee
|
2d6095ea5e
|
Fixed #3142 -- Optimized the assignment of m2m and m2o relation sets. Thanks, (and well spotted!) mitakummaa@gmail.com.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4231 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-20 09:59:03 +00:00 |
Adrian Holovaty
|
a23e67bf4b
|
Improved error message in postgresql backend
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4215 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-15 22:32:16 +00:00 |
Adrian Holovaty
|
5cb093b033
|
newforms: Changed form_for_model() to ignore a field if its formfield() returns None, and changed AutoField.formfield() to return None
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4214 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-15 21:22:13 +00:00 |
Adrian Holovaty
|
35f7e33b4a
|
Implemented formfield() for a bunch of database Field classes
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4211 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-15 18:32:42 +00:00 |
Adrian Holovaty
|
1c4ed6126b
|
Moved newforms import out of Field.formfield()
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4210 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-15 18:15:55 +00:00 |
Adrian Holovaty
|
706fcec164
|
Copied django.forms to django.oldforms and changed all code to reference django.oldforms instead of django.forms. Updated docs/forms.txt to add 'Forwards-compatibility' section that says you should not be using django.oldforms for any new projects.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4208 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-15 18:00:50 +00:00 |
Adrian Holovaty
|
6001974e45
|
newforms: Added initial implementation of form_for_model and form_for_fields
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4205 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-15 05:46:11 +00:00 |
Russell Keith-Magee
|
95d19384c0
|
Fixes #2993, Refs #2918 -- Reverted [3960]; [3960] fixed a potential data validation problem for SQLite, but broke usage of LazyDate. The proper fix is to complete the model validators to catch _all_ invalid inputs.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4105 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-11-26 02:38:04 +00:00 |
Adrian Holovaty
|
ab6fd7328f
|
Fixed typo in 'incorrect backend' database error message
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4067 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-11-13 05:02:45 +00:00 |
Adrian Holovaty
|
a84404c190
|
Formatting fixes from the past round of checkins
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4052 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-11-07 19:07:27 +00:00 |
Jacob Kaplan-Moss
|
fef89a01c5
|
Fixed #2866: Added DATABASE_OPTIONS setting which gets passed as extra kwargs to the backend's connect method. Thanks, ymasuda.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4048 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-11-07 05:17:38 +00:00 |
Jacob Kaplan-Moss
|
86143f7599
|
Fixed #2913: CursorDebugWrapper no longer double-tuple-izes parameters. Thanks, artdent@freeshell.org
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4045 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-11-07 05:00:19 +00:00 |
Jacob Kaplan-Moss
|
a4d86a7fb0
|
Fixed #2923: FileFields can now be modified on windows. Thanks, radek.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4036 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-11-07 02:25:49 +00:00 |