Malcolm Tredinnick
ccc3a4766d
queryset-refactor: Removed unneeded import.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6500 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-14 03:45:34 +00:00
Malcolm Tredinnick
bd2dfdf989
queryset-refactor: Fixed a problem with count() queries -- we were creating an
...
"ORDER BY" clause sometimes and that isn't accepted by PostgreSQL (and a waste
of time on other databases as well).
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6499 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-14 02:17:12 +00:00
Malcolm Tredinnick
90f2893aea
queryset-refactor: Fixed some quoting problems with aliases.
...
These showed up for PostgreSQL, but this approach is a bit more robust in
general, I suspect.
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6498 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-14 02:16:57 +00:00
Malcolm Tredinnick
0ebb752e89
queryset-refactor: Made all the changes needed to have count() work properly
...
with ValuesQuerySet. This is the general case of #2939 .
At this point, all the existing tests now pass on the branch (except for
Oracle). It's a bit slower than before, though, and there are still a bunch of known bugs that aren't in the tests (or only exercised for some backends).
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6497 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-14 02:16:38 +00:00
Malcolm Tredinnick
cae24af822
queryset-refactor: Previous exclude() fixing broke the simple case. Fixed that
...
(the lookup tests picked this up).
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6496 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-14 02:16:08 +00:00
Malcolm Tredinnick
240ecf0811
queryset-refactor: Fixed the optimization that potentially removes the final
...
join to handle the case where a to_field attribute is given for the join.
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6495 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-14 02:15:52 +00:00
Malcolm Tredinnick
425e4662a4
queryset-refactor: Fixed the SQL construction when excluding items across
...
nullable joins. This is #5324 plus a few more complex variations on that theme.
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6494 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-14 02:15:28 +00:00
Malcolm Tredinnick
fdb3209062
queryset-refactor: Fixed a bug in Node.negate() for already negated nodes.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6493 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-14 02:15:03 +00:00
Malcolm Tredinnick
142e400c5c
queryset-refactor: Create a new join when merging two QuerySets that use a 1-m
...
field.
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6492 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-14 02:14:53 +00:00
Malcolm Tredinnick
8926b431ed
queryset-refactor: Removed a test that can be better (and simply) fixed on trunk
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6491 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-14 02:14:29 +00:00
Malcolm Tredinnick
2c4013e74f
queryset-refactor: Fixed a problem in the isnull=True handling.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6490 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-14 02:14:15 +00:00
Malcolm Tredinnick
b47231ee3e
querset-refactor: Fixed a bunch of little things as a result of working on the
...
tests.
All of modeltests/ now pass. This includes a fix to modeltests/signals/ (in the
post_delete signal testing), which I'm sure was incorrect previously.
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6489 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-14 02:13:51 +00:00
Malcolm Tredinnick
e9f1f50461
queryset-refactor: Re-added a docs change that was accidentally lost in the merge in [6466].
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6488 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-14 02:13:13 +00:00
Malcolm Tredinnick
72f9b7d4e8
queryset-refactor: integrate select_related() into SQL generation.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6487 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-14 02:13:04 +00:00
Malcolm Tredinnick
988b3bbdcb
queryset-refactor: Ported DateQuerySet and ValueQuerySet over and fixed most of
...
the related tests.
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6486 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-14 02:12:40 +00:00
Malcolm Tredinnick
bcdedbbf08
queryset-refactor: Fixed small deepcopy bug in Where clauses.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6485 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-14 02:12:03 +00:00
Malcolm Tredinnick
dfe7e4e925
queryset-refactor: Fixed a bug in QuerySet.get(). Also removed unneeded code form EmptyQuerySet.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6484 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-14 02:11:47 +00:00
Malcolm Tredinnick
7ebf3068c1
queryset-refactor: Merged changed from trunk up to [6463].
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6466 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-08 16:10:39 +00:00
Adrian Holovaty
94c320d8a9
queryset-refactor: Merged to [6381]
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6382 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-20 01:55:53 +00:00
Adrian Holovaty
28a4aa6f49
queryset-refactor: Merged to [6340]
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6341 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15 22:00:35 +00:00
Adrian Holovaty
ca33d307de
queryset-refactor: Merged to [6300]
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6340 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15 21:57:25 +00:00
Adrian Holovaty
7325fbf4ff
queryset-refactor: Merged to [6250]
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6339 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15 21:46:18 +00:00
Adrian Holovaty
5ce2e6c2c8
queryset-refactor: Merged to [6220]
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6337 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15 21:42:51 +00:00
Adrian Holovaty
ea9cd54213
queryset-refactor: Merged to [6198]
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6336 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15 21:39:05 +00:00
Adrian Holovaty
d29c457ad1
queryset-refactor: Merged to [6197]
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6335 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15 21:35:33 +00:00
Adrian Holovaty
bf6a46d8ad
queryset-refactor: Merged to [6190]
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6334 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15 21:34:09 +00:00
Adrian Holovaty
fb6a0c8ffa
queryset-refactor: Merged to [6155]
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6332 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15 21:21:37 +00:00
Adrian Holovaty
c8f6e485b8
queryset-refactor: Merged to [6140]
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6331 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15 21:18:17 +00:00
Adrian Holovaty
a882e6076b
queryset-refactor: Merged to [6130]
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6330 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15 21:15:56 +00:00
Malcolm Tredinnick
ff3f6df54c
Fixed some more join and lookup tests.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6121 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-13 06:33:41 +00:00
Malcolm Tredinnick
184a6435cd
Fixed deleting via generic relations.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6120 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-13 03:54:47 +00:00
Malcolm Tredinnick
bb77006ade
Use the correct column in custom column handling.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6119 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-13 03:17:46 +00:00
Malcolm Tredinnick
a7d01ec9b4
Fixed limit/offset computations.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6118 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-13 03:11:44 +00:00
Malcolm Tredinnick
cc9d519424
Added missing file.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6117 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-13 02:56:31 +00:00
Malcolm Tredinnick
a7a517f329
Initial portion of queryset rewrite. This breaks a lot more than it fixes in
...
the current state. Committing so that Adrian and I can work on it together.
Do not try to use this yet!
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6116 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-13 02:50:14 +00:00
Malcolm Tredinnick
b791612779
Created a tree data structure. Might be generically useful. Currently used for
...
constructing queries.
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6115 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-13 02:48:46 +00:00
Malcolm Tredinnick
4751fd9ba7
Added a note about not using 'pk' as a field name for a non-primary-key field.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6114 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-13 02:48:06 +00:00
Malcolm Tredinnick
2d07a19c19
Created some tests to show ORM queries that are problematic.
...
Still incomplete at the moment, but this version doesn't crash the test
framework.
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6113 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-13 02:47:29 +00:00
Adrian Holovaty
e178be41cf
Created queryset-refactor branch, for Malcolm's refactoring of django.db.models.query and related code
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6112 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-13 02:34:32 +00:00
Adrian Holovaty
ced74d582a
Added 'Claiming tickets' section to docs/contributing.txt
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6110 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-12 14:38:47 +00:00
Adrian Holovaty
db6093641c
Fixed #5406 -- Fixed spelling error in docs/model-api.txt. Thanks, Andrew Shearer
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6109 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-12 13:11:51 +00:00
Russell Keith-Magee
50497e3867
Refs #5138 -- Refactored implementation of __contains__ in HttpRequest introduced in [6097] after a suggestion from Malcolm. Applied a similar refactor for MergeDict and Context which had comparable behavior.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6098 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-11 14:04:40 +00:00
Russell Keith-Magee
db01d1d0a8
Fixed #5318 -- Added __contains__ method to HttpRequest, mirroring existing has_key method. Thanks for the patch, robbie@prelab.net.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6097 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-11 13:36:09 +00:00
Russell Keith-Magee
7115465afa
Fixed #4478 -- Added a catch for an error thrown by PIL when attempting to validate MS OLE files.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6096 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-11 13:13:35 +00:00
Adrian Holovaty
2cf419d9ed
Got runserver auto-reloading working again by removing what appeared to be debugging code in django.core.management.base. Refs #5369
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6094 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-11 04:37:23 +00:00
Adrian Holovaty
2554ea352e
Restored 'django-admin.py --help'
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6093 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-11 04:27:06 +00:00
Adrian Holovaty
a77a02359d
Updated runfcgi management command to include 'subcommand' argument to usage()
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6092 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-11 04:25:55 +00:00
Adrian Holovaty
a291952a7d
Refactored some small parts of core.management -- ManagementUtility.execute() no longer takes an argument, and ManagementUtility.__init__() now takes argv
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6091 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-11 04:24:35 +00:00
Gary Wilson Jr
aacb0cf055
Removed duplicate form tests added in the [changeset:5609 unicode merge].
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6090 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-11 04:21:32 +00:00
Adrian Holovaty
a247c726c2
Changed core.management print_help() methods to accept a prog_name argument instead of an argv list, in an attempt to figure out why auto reloading stopped working
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6089 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-11 03:46:35 +00:00