Adrian Holovaty
|
85ff60d06a
|
magic-removal: Restored extra() on QuerySet -- renamed from extras()
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2168 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-30 03:36:25 +00:00 |
Adrian Holovaty
|
9708aa51c0
|
magic-removal: Restored __getitem__() on QuerySet and fixed bug in QuerySet._clone()
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2167 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-30 03:33:40 +00:00 |
Adrian Holovaty
|
f771586deb
|
magic-removal: Moved delete() from Manager to QuerySet
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2166 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-30 03:17:19 +00:00 |
Adrian Holovaty
|
43179e41ae
|
magic-removal: Restored caching on QuerySet
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2165 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-30 02:57:04 +00:00 |
Adrian Holovaty
|
d1d3925beb
|
magic-removal: Fixed #1293 -- Added missing exception. Thanks, chad.cornsilk.net
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2164 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-30 02:51:47 +00:00 |
Adrian Holovaty
|
d53837b8bb
|
magic-removal: Changed QuerySet._clone() to copy self.klass
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2163 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-30 02:23:56 +00:00 |
Adrian Holovaty
|
50e17688b0
|
magic-removal: Added small comment for ManagerDescriptor
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2162 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-30 02:19:45 +00:00 |
Adrian Holovaty
|
f925d89d11
|
magic-removal: Changed QuerySet._clone() to clone where, params and tables
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2161 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-30 02:11:21 +00:00 |
Adrian Holovaty
|
880c176381
|
magic-removal: Changed QuerySet to copy core_filters in init() instead of for every query
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2160 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-30 02:09:25 +00:00 |
Adrian Holovaty
|
502225ef86
|
magic-removal: Massaged Manager and QuerySet. Still more work to do.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2159 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-30 02:07:10 +00:00 |
Adrian Holovaty
|
06842af5ab
|
magic-removal: Removed support for old-style related object lookup (get_foo() methods)
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2158 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-30 00:46:47 +00:00 |
Adrian Holovaty
|
2be3eefdff
|
magic-removal: Updated some of the unit tests to use new syntax. 175 unit-test failures at this point.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2157 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-30 00:38:23 +00:00 |
Adrian Holovaty
|
83f8870489
|
magic-removal: Removed unnecessary legacy 'import copy' and restored some spacing that had been changed (for easier understanding of diffs)
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2156 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-29 02:02:58 +00:00 |
Russell Keith-Magee
|
5bac096399
|
magic-removal: Moved related name clash check logic out of Options, and into the
validation phase of model loading.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2155 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-29 01:38:48 +00:00 |
Luke Plant
|
d580b42d45
|
magic-removal: Removed caching hack for managers, disabling caching for everything except related objects
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2154 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-29 01:09:10 +00:00 |
Luke Plant
|
a33aa41fbf
|
magic-removal: Fixed SingleRelatedObjectDescriptor for new manager syntax
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2153 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-29 00:59:37 +00:00 |
Luke Plant
|
4d7e3c43c5
|
magic-removal: Fixed syntax of call to _set_core_filters in ManyRelatedObjectsDescriptor
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2152 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-29 00:34:49 +00:00 |
Luke Plant
|
2fd362f2d7
|
magic-removal: Updated model tests for new syntax: 'basic', 'custom_managers' and 'custom_columns'
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2151 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-29 00:23:52 +00:00 |
Luke Plant
|
02eeb8dd14
|
magic-removal: first stab at implementing Manager as a QuerySet
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2150 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-29 00:22:10 +00:00 |
Luke Plant
|
3127e3befb
|
magic-removal: Fixed typo in handlers.modpython
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2149 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-28 19:41:29 +00:00 |
Adrian Holovaty
|
7e0ba90442
|
magic-removal: Implemented SingleRelatedObjectDescriptor -- descriptor lookup for many-to-one related lookup, e.g. choice.poll. Old syntax, choice.get_poll(), still works for the moment.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2148 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-28 19:27:51 +00:00 |
Adrian Holovaty
|
b266091a2a
|
magic-removal: Renamed RelatedObjectDescriptor to ManyRelatedObjectsDescriptor and created stub for SingleRelatedObjectDescriptor
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2147 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-28 18:45:04 +00:00 |
Russell Keith-Magee
|
feee6d8805
|
magic-removal: Added checks to prevent creation of models with related/m2m field names that collide with defined field names
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2146 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-28 17:58:44 +00:00 |
Russell Keith-Magee
|
ce71979e53
|
magic-removal: Modified query lookup to correctly handle non-plural RelatedObjects.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2145 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-28 17:06:05 +00:00 |
Adrian Holovaty
|
90a49140a5
|
magic-removal: Added descriptor lookup support for reverse many-to-many relationships -- e.g. site_obj.article_set. For the time being, site_obj.get_article_list(), site_obj.get_article_count(), etc., still work.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2144 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-28 02:08:32 +00:00 |
Adrian Holovaty
|
322336c382
|
magic-removal: Reworded comment from [2141]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2142 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-28 00:14:28 +00:00 |
Adrian Holovaty
|
b22ebaf466
|
magic-removal: Added first stab at many-to-one descriptor lookup. Now poll_obj.choice_set is created. poll_obj.get_choice_list(), poll_obj.get_choice() and poll_obj.get_choice_count() are still supported temporarily, but that code was marked with a TODO to be deleted.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2141 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-28 00:12:26 +00:00 |
Adrian Holovaty
|
a6139af645
|
magic-removal: Added 'core_filters' attribute to Manager -- a dictionary of core filters to apply to every database query made with that manager.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2140 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-27 23:42:45 +00:00 |
Adrian Holovaty
|
a35f7c6e15
|
magic-removal: Changed ManipulatorDescriptor to raise AttributeError correctly
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2138 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-27 21:29:29 +00:00 |
Adrian Holovaty
|
1af3a39868
|
magic-removal: Merged to [2136]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2137 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-27 16:35:25 +00:00 |
Adrian Holovaty
|
6dddef9b91
|
magic-removal: Negligible spacing change to db.models.manager
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2135 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-27 16:08:54 +00:00 |
Adrian Holovaty
|
bacdf2ddad
|
magic-removal: Fixed #1276 -- Fixed typo in auth.models. Thanks, Esaj
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2130 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-27 15:41:26 +00:00 |
Adrian Holovaty
|
9308377fda
|
magic-removal: Removed SharedMethods hack in db.models.fields.related -- there's some duplicate code now, but it's easier to understand
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2129 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-26 21:22:43 +00:00 |
Adrian Holovaty
|
6cfea0d5b9
|
magic-removal: Changed RelatedObject to take parent_model, not parent_opts, in constructor
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2128 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-26 17:12:32 +00:00 |
Adrian Holovaty
|
e865477593
|
magic-removal: Negligible formatting cleanup in models/manager.py
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2127 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-26 16:36:03 +00:00 |
Adrian Holovaty
|
1833c53b21
|
magic-removal: Renamed get_method_name_part() to get_accessor_name()
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2126 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-26 04:12:16 +00:00 |
Joseph Kocherhans
|
faf9ff6316
|
magic-removal: Fixed some model tests that broke with removal of pluralization in [2111].
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2125 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-25 21:51:13 +00:00 |
Jacob Kaplan-Moss
|
650d26d32e
|
magic-removal: removed django.parts.media -- it's cruft left over from Ellington that isn't helpful in Django at all
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2124 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-25 04:01:18 +00:00 |
Adrian Holovaty
|
7d23d1e798
|
magic-removal: Merged to [2120]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2121 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-24 00:49:16 +00:00 |
Adrian Holovaty
|
b7891c560c
|
magic-removal: Fixed #1264 -- Fixed missing import in manipulators.py. Thanks, Esaj
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2118 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-23 23:01:22 +00:00 |
Adrian Holovaty
|
8708245d96
|
magic-removal: Updated docs/model-api.txt to remove sections on 'exceptions' and 'module_constants' params to 'class Meta'
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2116 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-23 04:37:24 +00:00 |
Adrian Holovaty
|
ff474dffab
|
magic-removal: Removed 'where_constraints' parameter to 'class Meta'
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2115 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-23 04:36:08 +00:00 |
Adrian Holovaty
|
c8c7f07190
|
magic-removal: Removed 'admin', 'exceptions' and 'module_constants' parameters to 'class Meta'
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2114 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-23 04:35:02 +00:00 |
Adrian Holovaty
|
d78533535f
|
magic-removal: module_name is no longer a valid 'class Meta' attribute
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2113 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-23 03:08:10 +00:00 |
Adrian Holovaty
|
8ec8a8720e
|
magic-removal: Unabstracted get_module_name() function, because it was only used once
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2112 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-23 03:06:39 +00:00 |
Adrian Holovaty
|
e8b570c3c6
|
magic-removal: Fixed #1259 -- This is VERY backwards-incompatible! Normalized all table names to be singular. Added 'django_' prefix to core tables that didn't have it. Thanks, Tom Tobin.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2111 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-23 02:50:15 +00:00 |
Adrian Holovaty
|
75c4013a21
|
magic-removal: Moved FieldDoesNotExist exception to django.db.models.fields and removed django.db.models.exceptions
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2110 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-23 02:41:01 +00:00 |
Adrian Holovaty
|
766ee9aeb2
|
magic-removal: Removed BadKeywordArguments exception, which wasn't being used.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2109 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-23 02:37:01 +00:00 |
Adrian Holovaty
|
fcdc826e2c
|
magic-removal: Removed BadCommand exception, which wasn't being used.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2108 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-23 02:36:11 +00:00 |
Adrian Holovaty
|
69120fa9d3
|
magic-removal: Changed delete() safety-mechanism logic to happen as soon as possible.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2107 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-23 02:34:07 +00:00 |