Adrian Holovaty
|
e49a09731b
|
magic-removal: Implemented QuerySet.values(). All 'lookup' unit tests pass.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2181 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-30 05:38:02 +00:00 |
Adrian Holovaty
|
913ed88397
|
magic-removal: Fixed bug in _get_next_or_previous_by_FIELD()
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2180 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-30 05:26:31 +00:00 |
Adrian Holovaty
|
f0d3b56d76
|
magic-removal: Fixed some errors in 'lookup' model unit tests
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2179 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-30 05:21:11 +00:00 |
Adrian Holovaty
|
93399167b6
|
magic-removal: Various fixes to QuerySet. Temporarily turned off caching.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2178 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-30 05:20:36 +00:00 |
Adrian Holovaty
|
97e7ff7c27
|
magic-removal: Changed get_DATEFIELD_list() manager method to dates(), which takes the name of the date field. Updated docs and unit tests.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2177 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-30 04:36:41 +00:00 |
Adrian Holovaty
|
cf276407ea
|
magic-removal: Fixed _get_next_or_previous_by_FIELD() to use new-style lookup
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2175 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-30 04:05:53 +00:00 |
Adrian Holovaty
|
b3e9732eff
|
magic-removal: Fixed _set_core_filter() call in db.models.fields.related
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2174 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-30 04:04:12 +00:00 |
Adrian Holovaty
|
4d3763123a
|
magic-removal: Changed exception text for in_bulk() error
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2173 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-30 04:01:58 +00:00 |
Adrian Holovaty
|
7ff623755a
|
magic-removal: Fixed legacy get_object() call in Model._get_next_or_previous_by_FIELD()
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2172 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-30 03:51:55 +00:00 |
Adrian Holovaty
|
e4112922f7
|
magic-removal: Fixed subtle bug in QuerySet ordering -- now, if _order_by is an empty sequence, no ordering will be done. If it's None, it will use the model's ordering setting
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2171 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-30 03:51:10 +00:00 |
Adrian Holovaty
|
abd2bdba14
|
magic-removal: Fixed bug in manipulators model unit tests
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2170 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-30 03:41:18 +00:00 |
Adrian Holovaty
|
a71574a476
|
magic-removal: Changed custom_managers unit tests to set core_filters directly rather than _set_core_filter()
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2169 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-01-30 03:40:06 +00:00 |
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 |