Simon Willison
|
fd2b99b5f1
|
After discussing with Malcolm, added set_unusable_password() and has_usable_password() methods to the User object, plus tests and updated documentation
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5771 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-28 18:30:40 +00:00 |
Russell Keith-Magee
|
650cea9170
|
Fixed #4460 -- Added the ability to be more specific in the test cases that are executed. This is a backwards incompatible change for any user with a custom test runner. See the wiki for details.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5769 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-28 04:02:52 +00:00 |
Adrian Holovaty
|
5b8d2c9f0d
|
Fixed bug with using values() and extra(select) in the same QuerySet, with a select dictionary containing more than a few elements. This bug was identified in unit test from [5767]. The problem was that we were relying on the dictionary's .items() ordering, which is undefined
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5768 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-27 22:07:42 +00:00 |
Malcolm Tredinnick
|
386a4c610c
|
Added support for database cache table in test database.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5766 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-26 22:59:34 +00:00 |
Gary Wilson Jr
|
29078eaeca
|
Fixed #4971 -- Fixed some escaping and quoting problems in the databrowse contrib app. Based on patch from Johann Queuniet.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5764 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-26 05:01:53 +00:00 |
Adrian Holovaty
|
b263e1704c
|
Changed safe_join() docstring from [5750] to use active verbs. See also [5756]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5758 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-25 03:18:17 +00:00 |
Adrian Holovaty
|
da6b3865ae
|
Changed docstring additions from [5744] to use active verbs ('returns' instead of 'return')
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5756 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-25 03:12:31 +00:00 |
Russell Keith-Magee
|
1b7fe09660
|
Fixed #3771 -- Modified the test runner to observe the --noinput argument controlling script interactivity. This means that test scripts can now be put in a buildbot environment. This is a backwards incompatible change for anyone that has written a custom test runner. Thanks for the suggestion, moof@metamoof.net.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5752 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-23 12:14:32 +00:00 |
Gary Wilson Jr
|
304381616f
|
Fixed #4952 -- Fixed the `get_template_sources` functions of the `app_directories` and `filesystem` template loaders to not return paths outside of given template directories. Both functions now make use of a new `safe_join` utility function. Thanks to SmileyChris for help with the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5750 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-23 04:45:01 +00:00 |
Gary Wilson Jr
|
7a16a1d81a
|
Corrected typo in [5746].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5747 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-22 03:45:03 +00:00 |
Gary Wilson Jr
|
cae92ae615
|
Fixed #4373 -- Modified the get_object_or_404/get_list_or_404 shortcuts to also accept `QuerySet`s. Thanks SuperJared.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5746 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-22 03:41:11 +00:00 |
Gary Wilson Jr
|
63cc023eea
|
Shortcut functions do not accept `QuerySet` objects, yet :)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5745 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-22 03:12:50 +00:00 |
Gary Wilson Jr
|
d95e91b380
|
Added docstrings to shortcuts module and functions.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5744 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-22 03:09:24 +00:00 |
Gary Wilson Jr
|
bac6a2f88e
|
Fixed #4945 -- Removed unused `GET_ITERATOR_CHUNK_SIZE` definition from manager.py. `GET_ITERATOR_CHUNK_SIZE` is already defined in query.py. Thanks zigiDev@mac.com.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5743 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-22 02:18:36 +00:00 |
Russell Keith-Magee
|
f2303b6f7a
|
Fixed #4402 -- Modified test client to allow multi-valued inputs on GET requests. Thanks for the suggestion, eddymul@gmail.com.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5741 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-21 05:17:20 +00:00 |
Russell Keith-Magee
|
ef080e44d0
|
Minor fix to allow for count=0 in assertContains.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5739 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-21 04:36:28 +00:00 |
Russell Keith-Magee
|
7cc2bf2f03
|
Fixed #4304 -- Modified sys.exit to os._exit to make sure development server quits when an error occurs attempting to bind to the requested port (e.g., if another server is already running). Thanks, Mario Gonzalez <gonzalemario@gmail.com>.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5738 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-21 03:30:38 +00:00 |
Russell Keith-Magee
|
f7ef0a92da
|
Fixed #4738 -- Modified the prompt that is displayed when a test database cannot be created. The existing prompt was misleading if the issue wasn't a pre-existing database. Thanks for the suggestion, John Shaffer <jshaffer2112@gmail.com>.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5732 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-20 14:42:57 +00:00 |
Russell Keith-Magee
|
56394220d5
|
Fixed #4901 -- Modified assertContains to provide a default check of 'any instances of text in content'. Thanks for the suggestion, nis@superlativ.dk.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5731 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-20 14:32:20 +00:00 |
Russell Keith-Magee
|
9922a04bb6
|
Fixed #3782 -- Added support for the suite() method recommended by the Python unittest docs. Thanks for the suggestion, rene.puls@repro-mayr.de.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5729 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-20 13:57:49 +00:00 |
Russell Keith-Magee
|
3fef1f4c8d
|
Fixed #4558 -- Modified XML serializer to handle whitespace better around None tags. Thanks to Bill Fenner <fenner@gmail.com> for the report and fix.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5727 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-20 12:07:58 +00:00 |
Adrian Holovaty
|
0827f4ac7e
|
Simplified the indent level in management.py _get_sql_model_create() by using a 'continue' statement rather than nesting everything in an 'if'
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5726 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-20 06:34:26 +00:00 |
Adrian Holovaty
|
ac2b9f2a3f
|
Added a db_type() method to the database Field class. This is a hook for calculating the database column type for a given Field. Also converted all management.py CREATE TABLE statements to use db_type(), which made that code cleaner. The Field.get_internal_type() hook still exists, but we should consider removing it at some point, because db_type() is more general. Also added docs -- the beginnings of docs on how to create custom database Field classes. This is backwards-compatible.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5725 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-20 06:28:56 +00:00 |
Malcolm Tredinnick
|
f5ef3bec68
|
Fixed #3925 -- Added Slovak localflavor items. Thanks, Martin Kosír.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5724 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-19 09:24:36 +00:00 |
Malcolm Tredinnick
|
9ff1060391
|
Fixed #4917 -- Updated Swedish translation. Thanks, Pilip Lindborg.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5723 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-19 09:23:45 +00:00 |
Malcolm Tredinnick
|
23404cdec4
|
Fixed #4899 -- Fixed a problem with PO file header generation caused by [5708].
Thanks, Ramiro Morales.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5722 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-17 10:25:43 +00:00 |
Malcolm Tredinnick
|
c92ce31d60
|
Fixed #4898 -- Fixed a precendence problem when constructing HTTP Date header.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5721 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-17 04:22:11 +00:00 |
Gary Wilson Jr
|
9a1c21809e
|
Removed unused variable and changed comments about `permalink` decorator into a docstring.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5719 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-16 13:47:43 +00:00 |
Malcolm Tredinnick
|
2679bc0304
|
Fixed #4845 -- Fixed some problems with Unicode usage and caching. Thanks,
Jeremy Dunck.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5718 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-16 09:36:10 +00:00 |
Gary Wilson Jr
|
7aac81d280
|
Cleaned up a couple unused imports and fixed docstrings to follow Python Style Guide.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5717 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-16 05:28:13 +00:00 |
Malcolm Tredinnick
|
29891add3d
|
Fixed #4887 -- Fixed another place where template tag arguments are used
directly as function keyword args. Thanks, Brian Rosner.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5715 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-16 04:54:49 +00:00 |
Malcolm Tredinnick
|
58096c4bcc
|
Fixed #4806 -- Updated Simplified Chinese translation. Thanks, limodou.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5714 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-16 04:47:52 +00:00 |
Malcolm Tredinnick
|
41a6e41777
|
Fixed #4884 -- Fixed an initialisation problem when assigned to settings before
accessing them. Thanks, Noam Raphael.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5713 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-16 04:45:45 +00:00 |
Malcolm Tredinnick
|
5dd9a2ab38
|
Fixed #4199 -- Changed date formatting in HTTP expires header to be spec
compliant. Thanks, Chris Bennett.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5712 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-16 03:50:22 +00:00 |
Malcolm Tredinnick
|
0dbc0ab338
|
Fixed #4734 -- Changed message extraction to permit non-ACSII msgid strings.
Thanks, krzysiek.pawlik@silvermedia.pl.
This is slightly backwards-incompatible for translators: PO files are now
assumed to be in UTF-8 encoding.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5708 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-15 10:10:44 +00:00 |
Malcolm Tredinnick
|
5fbc589014
|
Re-encoded djangojs.po for French and German locales to UTF-8. These were the
last two non-UTF-8 PO files.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5707 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-15 10:08:05 +00:00 |
Malcolm Tredinnick
|
1a3ff79f80
|
Fixed #4882 -- Updated Argentinean Spanish translation (includes re-encoding to
UTF-8). Thanks, Ramiro Morales.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5706 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-15 09:46:42 +00:00 |
Malcolm Tredinnick
|
7eade9a5bb
|
Fixed #4880 -- Updated Spanish translation (includes re-encoding to UTF-8).
Thanks, Jorge Gajon.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5705 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-15 09:39:13 +00:00 |
Gary Wilson Jr
|
a41c03345e
|
Changed imports to adhere to PEP 8.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5704 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-15 06:29:45 +00:00 |
Gary Wilson Jr
|
ae7f04caab
|
Fixed #3012 -- Changed the locmem cache backend to use pickle instead of deepcopy to make it compatible with iterators (which cannot be copied). Patch from Sundance.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5703 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-15 06:24:54 +00:00 |
Gary Wilson Jr
|
b68f188628
|
Fixed #4310 -- Fixed a regular expression bug in `strip_entities` function and added tests for several `django.utils.html` functions. Based on patch from Brian Harring.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5701 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-15 05:03:28 +00:00 |
Adrian Holovaty
|
55de110627
|
Negligible capitalization fix in test/client.py docstring
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5699 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-14 17:04:30 +00:00 |
Malcolm Tredinnick
|
a9a04ca8f6
|
Fixed #4731 -- Changed management.setup_environ() so that it no longer assumes
the settings module is called "settings". Patch from SmileyChris.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5696 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-14 14:47:14 +00:00 |
Malcolm Tredinnick
|
b8eee39e78
|
Fixed a problem with translatable strings from [5686].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5695 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-14 13:39:41 +00:00 |
Malcolm Tredinnick
|
f2a45f9b38
|
Fixed #4862 -- Fixed invalid Javascript creation in popup windows in admin.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5694 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-14 13:14:28 +00:00 |
Malcolm Tredinnick
|
501448e3f2
|
Fixed #4863 -- Removed comment references to a no-longer present link. Pointed
out by Thomas Güttler.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5693 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-14 12:48:24 +00:00 |
Gary Wilson Jr
|
193e6db457
|
Refs #2591 -- Removed int conversion and try/except since the value in the single-item list is already an int. I overlooked this in my original patch, which was applied in [5679].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5690 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-13 20:36:01 +00:00 |
Malcolm Tredinnick
|
92ee770773
|
Fixed #4556 -- Stylistic changes to [5500]. Thanks, glin@seznam.cz.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5689 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-13 14:40:39 +00:00 |
Malcolm Tredinnick
|
50a3cea8b6
|
Fixed #4484 -- Fixed APPEND_SLASH handling to handle an empty path value.
Thanks, VesselinK.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5688 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-13 14:33:46 +00:00 |
Malcolm Tredinnick
|
40bb32b5a4
|
Fixed #4469 -- Added slightly more informative error messages to max- and
min-length newform validation. Based on a patch from A. Murat Eren.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5686 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-13 14:13:35 +00:00 |