Adrian Holovaty
|
f15a5c7abb
|
Renamed a variable in ManagementUtility.execute() for clarity
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6086 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-09-10 04:33:24 +00:00 |
Russell Keith-Magee
|
3b6f032850
|
Fixed #5375 -- Added base command options to the options registered against dumpdata. Thanks for the fix, Matthew Flanagan <mattimustang@gmail.com>.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6081 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-09-10 02:07:57 +00:00 |
Adrian Holovaty
|
71504127fd
|
Fixed #5369 -- Refactored the django-admin.py help system, allowing each subcommand to register its own options. Thanks for the patch, Todd O'Bryan
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6075 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-09-09 21:57:59 +00:00 |
Gary Wilson Jr
|
b0e173ae3f
|
Fixed imports to adhere to PEP 8 and stripped trailing whitespace.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6068 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-09-08 19:26:15 +00:00 |
Gary Wilson Jr
|
7e57576ff7
|
Fixed #5232 -- Fixed the validation of `DecimalField` so that the negative sign is not counted as a digit. Thanks, Andrew Durdin.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6067 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-09-08 19:24:46 +00:00 |
Gary Wilson Jr
|
ef088d5f36
|
Fixed imports to adhere to PEP 8 and stripped trailing whitespace.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6066 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-09-08 05:11:17 +00:00 |
Gary Wilson Jr
|
41b3a45fc5
|
Fixed #3557 -- Made `SlugField` inherit from `CharField` so that its `max_length` is properly set. Removed `get_manipulator_field_objs` method since it's already provided by `CharField`. Thanks, Russell Cloran.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6065 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-09-08 05:09:39 +00:00 |
Gary Wilson Jr
|
be39adeb28
|
Changed imports to adhere to PEP 8.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6058 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-09-07 04:11:20 +00:00 |
Gary Wilson Jr
|
da5ce52061
|
Fixed #3134 -- Made the `archive_year` generic view consistent with the other date-based generic views by not performing an `order_by()` on the passed queryset. This change is backwards-incompatible if you were relying on `archive_year` to do the ordering for you.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6057 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-09-07 04:09:59 +00:00 |
Russell Keith-Magee
|
e4342b7d28
|
Refs #5343 -- Reverted [6047]. Loading custom commands was causing the settings file to get read before the options could be processed to determine if a --settings option was present. Back to the drawing board (again)...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6050 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-09-05 14:01:31 +00:00 |
Russell Keith-Magee
|
f25b8cdbcd
|
Fixed #5212, #5222 -- Added the ability for users to register their own commands with django-admin. A previous attempt at this was introduced in [5923]-[5925], and rolled out in [5929].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6047 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-09-04 12:59:49 +00:00 |
Gary Wilson Jr
|
53372fcb07
|
Cleaned up some imports.
Fixed long lines.
Changed some docstrings to use "action words".
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6044 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-09-04 00:50:06 +00:00 |
Gary Wilson Jr
|
bce7de9647
|
Removed some duplication in the Django `TestCase` methods by introducing a `to_list` function for putting a value into a list if it's not already one.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6041 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-09-03 23:14:51 +00:00 |
Russell Keith-Magee
|
3bf4ef0c77
|
Fixed #4988 -- In the test client, Added tracking of the client and request that caused a response so that the assertRedirects check can use the correct client when following a redirect. Well spotted, alex@gc-web.de.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6039 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-09-03 11:21:40 +00:00 |
Adrian Holovaty
|
afc6985267
|
Fixed #5292 -- Changed CSRF middleware to check for request.method == 'POST' instead of request.POST dictionary not being empty. Thanks, Jakub Wilk
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6038 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-09-03 06:18:48 +00:00 |
Adrian Holovaty
|
41576fea71
|
Fixed #5263 -- Updated docstring for sqlite3 backend. Thanks, Paul Bx
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6035 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-09-02 20:04:44 +00:00 |
Adrian Holovaty
|
a18b744aa6
|
Fixed #5318 -- Corrected typo in it_province localflavor. Thanks, francescod.calabrese@tiscali.it
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6033 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-09-02 17:06:26 +00:00 |
Adrian Holovaty
|
8ae1a78e47
|
Fixed #5319 -- Changed terminal colors in django.core.management.colors not to be used under Jython. Thanks, Marty Alchin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6032 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-09-02 17:05:13 +00:00 |
Russell Keith-Magee
|
5ad08583e1
|
Fixed #4968 -- Added assertRedirects handling for paths with GET data. Thanks for the patch, Ivan Sagalaev.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6031 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-08-31 11:37:28 +00:00 |
Adrian Holovaty
|
d09d1428f8
|
Fixed #5307 -- startproject/startapp now makes sure all files it creates are writeable. Thanks, Thomas Stromberg
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6028 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-08-31 04:35:03 +00:00 |
Russell Keith-Magee
|
258af283fc
|
Fixed #4457 -- Corrected the handling of exceptions in the test client when the 500.html template is not available. Thanks to Chris Wager <cw264701@ohiou.edu> for his help in tracking down this problem.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6023 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-08-28 13:03:22 +00:00 |
Adrian Holovaty
|
44e620972d
|
Changed 'validate' and 'runserver' management commands to display the number of errors. This was previous behavior before the management.py refactoring
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6022 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-08-27 00:30:37 +00:00 |
Gary Wilson Jr
|
1a1a58c9f8
|
Fixed #3184 -- Changed the `unordered_list` template filter to use a more simple format, while maintaining backwards compatibility with the old format. `unordered_list` now works with a simple list of items. Thanks for the patch, SmileyChris.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6019 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-08-26 01:11:20 +00:00 |
Adrian Holovaty
|
70740d6eca
|
Fixed #348 -- Fixed bug in admin JavaScript filter interface. Thanks for the patch, Gary Wilson
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6015 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-08-25 23:33:58 +00:00 |
Adrian Holovaty
|
132605d889
|
Fixed #5086 -- The 'flush' and 'sqlflush' management commands no longer touch tables that Django is not aware of (tables that are not in INSTALLED_APPS and/or do not have associated models. Thanks for bringing this up, shaun@cuttshome.net
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6013 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-08-25 19:32:30 +00:00 |
Adrian Holovaty
|
8b8a36c7d0
|
Changed postgresql and postgresql_psycopg2 backends NOT to do a SELECT version() for every connection, which was ludicrous. Now the version is only retrieved if it needs to be, via a lazy loader.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6012 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-08-25 19:24:47 +00:00 |
Adrian Holovaty
|
861b28f37e
|
Fixed #5055 -- Changed Postgres DatabaseOperations.sql_flush() to use 'SELECT setval()' instead of 'ALTER SEQUENCE', because the latter only works with Postgres 7.3+. Thanks, Don Arbow
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6009 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-08-25 18:56:43 +00:00 |
Adrian Holovaty
|
375c88d2bc
|
Fixed #5227 -- Made the redirect security check in django.contrib.auth.views.login() tighter. Thanks, Sander Dijkhuis
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6004 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-08-25 18:34:28 +00:00 |
Adrian Holovaty
|
6d387d3d1b
|
Fixed #5255 -- It's now possible again to use Django without a database. This had temporarily gotten buggy after the django.core.management refactoring last week
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6002 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-08-25 18:27:57 +00:00 |
Russell Keith-Magee
|
de64e0d570
|
Fixed #5224 -- Corrected name of admin media option in management runserver command. Thanks for the report, alberto@ingparo.it.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6001 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-08-25 11:17:33 +00:00 |
Adrian Holovaty
|
4652c96de1
|
Fixed #5237 -- Added an optional 'path' argument to get_svn_revision(). Thanks, django@poelzi.org
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5995 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-08-24 03:53:04 +00:00 |
Matt Boersma
|
377fe7ce77
|
Fixed breakage of test suite for Oracle by adding a null check.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5992 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-08-21 17:06:06 +00:00 |
Adrian Holovaty
|
a1e26b0105
|
Fixed #5215 -- Added Subversion revision number to Django version string. Thanks for the patch, Deryck Hodge
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5990 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-08-21 03:08:02 +00:00 |
Malcolm Tredinnick
|
14b5e074ba
|
Fixed #3311 -- Added naturalday filter to contrib.humanize. Thanks, Jyrki Pulliainen.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5985 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-08-20 08:50:08 +00:00 |
Adrian Holovaty
|
b367ec2244
|
Made various negligible formatting cleanups to the database backends
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5983 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-08-20 03:32:06 +00:00 |
Adrian Holovaty
|
14db37319b
|
Refactored OPERATOR_MAPPING so that it exists as django.db.connection.operators instead of django.db.backend.OPERATOR_MAPPING. Refs #5106
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5982 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-08-20 03:26:55 +00:00 |
Adrian Holovaty
|
b3912d3609
|
Changed backend create_test_db() and destroy_test_db() hooks NOT to take the backend as an argument, as the backend as an object is going away
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5981 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-08-20 03:16:55 +00:00 |
Adrian Holovaty
|
f0decc18cf
|
Removed legacy django.db.backend import in sql_delete()
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5980 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-08-20 03:13:03 +00:00 |
Adrian Holovaty
|
e267bec83a
|
Simplified max_name_length() call in oracle database backend
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5979 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-08-20 03:10:20 +00:00 |
Adrian Holovaty
|
b105a52882
|
Refactored get_drop_sequence() to DatabaseOperations.drop_sequence_sql(). Refs #5106
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5978 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-08-20 03:08:32 +00:00 |
Adrian Holovaty
|
4c5248f98f
|
Refactored get_field_cast_sql() to DatabaseOperations.field_cast_sql(). Refs #5106
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5977 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-08-20 03:03:40 +00:00 |
Adrian Holovaty
|
e13ea3c70d
|
Refactored get_query_set_class() to DatabaseOperations.query_set_class(). Also added BaseDatabaseFeatures.uses_custom_queryset. Refs #5106
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5976 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-08-20 02:39:05 +00:00 |
Adrian Holovaty
|
6d8e6090e5
|
Removed a bunch of legacy django.db.backend imports
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5975 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-08-20 02:28:40 +00:00 |
Adrian Holovaty
|
1a8f9b2b97
|
Implemented BaseDatabaseFeatures and changed all code to access it -- connection.features.foo instead of backend.foo
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5974 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-08-20 02:20:33 +00:00 |
Adrian Holovaty
|
4f82250512
|
Removed unneeded import from postgresql_psycopg2/base.py
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5973 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-08-20 01:30:11 +00:00 |
Adrian Holovaty
|
f4b397087c
|
Moved postgresql backend DatabaseOperations class into a new module, postgresql/operations.py, so that it can be imported by both the postgresql and postgresql_psycopg2 backends. Hence the two backends no longer have a duplicated DatabaseOperations class
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5972 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-08-20 01:26:46 +00:00 |
Adrian Holovaty
|
c2c3e93096
|
Removed _dict_helper() DB backend helper function, as it wasn't being used anymore
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5971 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-08-20 01:15:32 +00:00 |
Adrian Holovaty
|
a6a5e3cf32
|
Removed backend.dictfetchall(), as it wasn't being used anywhere
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5970 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-08-20 01:14:53 +00:00 |
Adrian Holovaty
|
ba49e7be08
|
Removed backend.dictfetchmany(), as it wasn't being used anywhere
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5969 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-08-20 01:14:03 +00:00 |
Adrian Holovaty
|
1b4cfd4fea
|
Removed backend.dictfetchone(), as it wasn't being used anywhere
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5968 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-08-20 01:13:12 +00:00 |