Malcolm Tredinnick
93597d051d
Fixed #2418 -- Fixed obsolete method call in PermLookupDict.__repr__. Thanks,
...
DarkElf109@ibendit.com .
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3798 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-23 08:35:10 +00:00
Malcolm Tredinnick
aa30761d51
Fixed #2789 -- Corrected typo from r3788.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3796 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-22 13:33:43 +00:00
Malcolm Tredinnick
d8b84cac91
Fixed #2515 -- Allow passing of options to JSON serializer. Thanks, nesh.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3795 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-22 13:26:07 +00:00
Malcolm Tredinnick
c3d7aad6d0
Fixed #2560 -- Add close() support to HttpResponse iterators. Thanks, Ivan
...
Sagalaev.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3791 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-22 12:32:00 +00:00
Malcolm Tredinnick
dc39762fde
Fixed #2578 -- Give a more accurate error message for admin.list_display_links
...
at model validation time. Patch from Christopher Lenz.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3790 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-22 12:22:32 +00:00
Malcolm Tredinnick
14be60c4cb
Fixed #2760 -- Fixed validation of negative float amounts in forms. Thanks,
...
James Bennett and Eddy Mulyono.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3788 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-22 03:42:31 +00:00
Malcolm Tredinnick
0fee26935d
Fixed #2747 -- Make X-Headers work for staff members. Admins with dyanmic IP
...
addresses can now use bookmarklets. Thanks, Maximillian Dornseif.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3786 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-22 03:17:28 +00:00
Malcolm Tredinnick
b46a093c45
Fixed #2678 -- Moved the list of profanities for the hasNoProfanities validator
...
into global_settings. Patch from Matt Croydon.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3784 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-22 02:48:19 +00:00
Malcolm Tredinnick
8971760ab5
Fixed #2732 -- Allow first positional argument to runfastcgi() to be optional.
...
Patch from James Crasta.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3777 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-21 13:45:24 +00:00
Adrian Holovaty
927ec3fe7b
Fixed #2732 -- Fixed error in FastCGI docs and added keyword-arg support in a FastCGI function. Thanks for the patch, James Crasta
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3759 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-14 15:37:11 +00:00
Adrian Holovaty
086992c739
Fixed #2689 -- Got 'manage.py diffsettings' working again. Thanks for the patch, Jeong-Min Lee
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3751 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-11 18:42:56 +00:00
Russell Keith-Magee
5a9839c547
Fixes #2653 -- Modified related field utility methods to return None as the related name for symmetrical m2m fields on self. Updated validators and unit tests to account for the new behavior.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3734 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-07 13:29:56 +00:00
Adrian Holovaty
22303d6c7d
Fixed #2611 -- Fixed XML serializer to handle null datetime fields. Thanks for reporting, csdurfee@gmail.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3687 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-31 04:11:46 +00:00
Jacob Kaplan-Moss
f89b9c8654
Fixed verbosity check in installing initial data
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3676 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-28 20:44:35 +00:00
Adrian Holovaty
e7424f0619
Fixed #2607 -- Fixed incorrect ordering of super() arguments in DateTimeAwareJSONEncoder. Thanks for the patch, dummy@habmalnefrage.de
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3671 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-28 18:39:30 +00:00
Russell Keith-Magee
77ab11be45
Refs #2333 - Added 'test' target to django-admin script. Includes addition of --verbosity and --noinput options to django-admin, and a new TEST_RUNNER setting to control the tool used to execute tests.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3660 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-27 12:46:39 +00:00
Adrian Holovaty
cccbe23006
Fixed #2577 -- Made isSlug() validator translation-aware. Thanks for the patch, henrik_kroeger@arcor.de
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3634 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-21 17:43:34 +00:00
Adrian Holovaty
eef88a6d2c
Fixed #2561 -- memcached cache backend no longer ignores default timeout. Thanks for the report and patch, Christopher Lenz
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3611 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-18 15:10:08 +00:00
Adrian Holovaty
20070d9117
Fixed #2372 -- manage.py runfcgi no longer ignore LANGUAGE_CODE. Thanks, ludo@qix.it
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3569 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-12 05:55:28 +00:00
Adrian Holovaty
e5bf574678
Changed inspectdb to *not* trim trailing 's' from database table name to create class name, because Django no longer does that as of magic-removal
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3558 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-11 15:32:35 +00:00
Adrian Holovaty
0b71ffacab
Improved urlresolvers so that URLconfs can be passed objects instead of strings
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3554 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-11 07:01:29 +00:00
Malcolm Tredinnick
01983c8fc3
Moved the space check from r3549 to before the Python keyword check so that
...
perverse column names like "fin ally" don't fall through the cracks.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3550 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-11 02:22:42 +00:00
Adrian Holovaty
caa51f4444
Fixed #2517 -- Improved inspectdb to handle table column names that contain spaces. Thanks, Karen Tracey
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3549 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-10 16:58:26 +00:00
Malcolm Tredinnick
cba451c940
Fixed #2469 -- Fixed the constraint names in the sqlreset output (again!).
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3547 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-10 03:48:34 +00:00
Malcolm Tredinnick
7a22a5194c
Fixed #2469 -- Made the "drop index" constraint names match those we create in the first place.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3543 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-09 11:22:14 +00:00
Malcolm Tredinnick
5ca28474f9
Fixed #2260 -- fixed a problem where some foreign key references were being
...
omitted during a "reset" or "sqlreset". Thanks, marcink@elksoft.pl .
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3542 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-09 07:16:35 +00:00
Adrian Holovaty
19c48c9005
Fixed #2494 -- Django development server no longer does reverse DNS. As a side effect, the server no longer sets the REMOVE_HOST environment variable
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3530 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-07 14:41:57 +00:00
Malcolm Tredinnick
ae83871580
Fixed #2491 -- Pass the project directory back from setup_environ so that we
...
can set up the "startapp" command. Thanks, marcink@elksoft.pl .
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3528 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-06 10:35:25 +00:00
Malcolm Tredinnick
27bf70dcb9
Moved the environment setup into a method that can be called from other scripts.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3527 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-06 02:29:38 +00:00
Adrian Holovaty
350a4a4592
Fixed #2467 -- Improved model validator to check date_hierarchy. Thanks, Simon Greenhill
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3516 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-02 15:05:51 +00:00
Malcolm Tredinnick
fa5e0562dc
Fixed #2257 -- make constraint names unique across all table/column
...
combinations (for the benefit of MySQL).
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3512 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-01 21:46:51 +00:00
Adrian Holovaty
1a428ec9b8
Fixed #2370 -- It's now possible to pass default URLconf arguments to include(). Added docs, as well. Thanks for the patch, martin.glueck@gmail.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3506 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-01 02:57:08 +00:00
Jacob Kaplan-Moss
2e598fb571
Fixed #2460 -- JSON serializer now correctly handles datetime objects. Thanks, siniy and jyrki.pulliainen@gmail.com.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3501 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-31 14:59:53 +00:00
Adrian Holovaty
36ee8f5ad2
Added leading slash to output of core.urlresolvers.reverse(), and made 'urlconf' a keyword argument
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3470 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-28 02:08:17 +00:00
Adrian Holovaty
aaa3cc0ea3
Changed output of django-admin.py --version to use a hyphen instead of parenthesis, to be clearer
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3460 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-27 17:03:35 +00:00
Adrian Holovaty
3d02de2713
Added resolve() and reverse() helper functions to django.core.urlresolvers
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3445 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-25 07:30:22 +00:00
Jacob Kaplan-Moss
a926046ba6
Second half of little cleanup tweaks suggested by pyflakes.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3414 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-21 20:39:17 +00:00
Jacob Kaplan-Moss
17d0bd1512
Fixed a bunch of spurious imports, typos, and other small errors turned up by a pass through PyFlakes. This covers about the first third of the errors.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3411 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-21 17:11:13 +00:00
Jacob Kaplan-Moss
e9a236d86c
Fixed #2092 : added a "is_secure()" method to HttpRequest which correctly handles the subtleties of mod_python's interaction with os.environ. This one's been bugging me for about a *year*, so many many thanks to k.shaposhnikov@gmail.com for figuring it out, and Tim Shaffer for pointing out this ticket.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3410 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-21 16:20:22 +00:00
Russell Keith-Magee
bb1cb76dfb
Fixed keyboard slip that was accidentally committed
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3405 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-21 03:56:06 +00:00
Russell Keith-Magee
edf68bede5
Cleanup of management.py; replaced uses of 'klass' with 'model', and normalized some variable naming in get_sql_create()
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3404 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-21 03:55:07 +00:00
Russell Keith-Magee
9b6d1efe77
Clarified debug naming of WSGIRequests
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3393 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-20 05:04:45 +00:00
Malcolm Tredinnick
0016547e9b
Fixed #2257 -- MySQL wants constraint names to be unique per-database, so fixed
...
the SQL generation to ensure this.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3373 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-19 10:14:43 +00:00
Russell Keith-Magee
8c705f02a9
Added command line flag to disable use of auto-reloader on development server.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3348 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-14 05:43:26 +00:00
Russell Keith-Magee
9bea530c33
Disable use of terminal colors when django-admin is run on a Pocket PC.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3347 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-14 05:26:55 +00:00
Adrian Holovaty
c1847294b8
Fixed #2301 -- Added list_display_links option to 'class Admin', which regulates which fields in the change list have links. Thanks, kilian
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3307 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-10 04:16:26 +00:00
Adrian Holovaty
b98972e1c9
Fixed #2312 -- E-mail validator now accepts TLDs up to 6 characters long
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3305 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-10 02:32:54 +00:00
Malcolm Tredinnick
5404e6e93b
Fixed #2285 -- Tweaked the error message after model errors at "syncdb" time so
...
that we don't report an app name of "None".
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3276 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-05 05:11:20 +00:00
Malcolm Tredinnick
a778c9de47
Fixed #1578 -- fixed a corner-case where we still wanting core=True attributes
...
on a model that was not being edited inline.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3275 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-04 10:48:07 +00:00
Jacob Kaplan-Moss
c9032ab07f
Added a JSON serializer, a few more tests, and a couple more lines of docs.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3237 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-29 16:42:49 +00:00
Jacob Kaplan-Moss
4ea7a11659
Added initial cut at serialization framework, along with some basic tests and a stab at some docs. This is all a bit rough right now, so expect some bumps.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3225 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-28 16:00:37 +00:00
Russell Keith-Magee
2adbe11678
Fixes #2216 -- Added extra tests for model validity, and cleaned up warning messages for existing tests. Models are now invalid if the query string required to access a field (or related object) would clash with the name of another field (or related object). Previous tests only checked the accessor names, not the query string.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3215 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-27 15:21:43 +00:00
Russell Keith-Magee
23c24fc08b
Fixes #1812 -- Added model validity checks to ensure that models.py exists, and has been successfully imported for all INSTALLED_APPS. Previous behaviour was to silently ignore empty/problem models, which resulted in the display of an admin page that doesn't display a supposedly installed model. Thanks to Ian Holsman for the original report.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3201 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-25 04:24:15 +00:00
Russell Keith-Magee
0d4b5b9b4a
Fixed #1662 -- Added resolver for string-form model references for models that have already been loaded, with tests to validate both forward and backward referenced model names. Light refactoring of model loading to make regression tests behave more like normal model loading. Also clarifies the text of some validation errors.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3195 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-23 04:37:00 +00:00
Malcolm Tredinnick
ba22f55aa2
Fixed #1928 -- Correctly create foreign key references when there are multiple
...
keys on multiple models. Based on a patch from Geert Vanderkelen and some
diagnosis from hornero.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3182 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-21 03:39:47 +00:00
Malcolm Tredinnick
92571b0d48
Fixed #2119 -- fixed problems with splitting SQL statements into separate
...
statements. Uses a patch from eaw@woudy.org and some contributions from
jpellerin@gmail.com . Also fixes #2034 and #1935 .
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3178 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-20 08:00:44 +00:00
Malcolm Tredinnick
3e97535907
Fixed #2161 -- handle trailing newlines in initial SQL data. Includes
...
regression test. Thanks to russellm.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3177 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-20 07:12:45 +00:00
Adrian Holovaty
32228d2031
Added django/core/servers/fastcgi.py and manage.py 'runfcgi' option. Thanks, jcrasta@gmail.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3174 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-20 05:24:19 +00:00
Adrian Holovaty
37addba352
Converted request.META['REQUEST_METHOD'] calls to request.method, throughout the Django codebase
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3171 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-20 04:34:13 +00:00
Adrian Holovaty
136752ca9a
Added 'method' attribute to HttpRequest objects
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3164 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-20 03:48:31 +00:00
Malcolm Tredinnick
c0ea3284d7
Fixed #1088 - Correctly detect when a float with too many digits before the
...
decimal point is passed in.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3142 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-19 01:09:00 +00:00
Jacob Kaplan-Moss
bca5327b21
Added generic foreign key support to Django. Much thanks to Ian Holsman and
...
Luke Plant -- most of this code is theirs. Documentation is to follow; for now
see the example/unit test. Fixes #529 .
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3134 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-16 19:18:30 +00:00
Adrian Holovaty
2abfd5dd58
Fixed #2109 -- Convert old-style classes to new-style classes throughout Django. Thanks, Nicola Larosa
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3113 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-08 05:00:13 +00:00
Adrian Holovaty
22da62f239
Fixed #1503 -- Improved model validator to throw an error if a model doesn't manually define a primary key and has a field named 'id', which conflicts with the auto-primary-key convention. Thanks, mir@noris.de
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3100 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-07 04:22:42 +00:00
Adrian Holovaty
0b92bd11db
Removed legacy deprecated_args check from django.core.management
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3099 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-07 04:15:18 +00:00
Adrian Holovaty
1926428a55
Fixed #2098 -- Loosened validation for model 'ordering' parameter by allowing periods. Thanks, Alex Dedul
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3095 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-07 02:47:53 +00:00
Adrian Holovaty
f3f002b161
Fixed #1697 and #2095 -- Made 'choices' parameter accept any iterable
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3094 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-07 02:46:08 +00:00
Georg Bauer
7e88ec5271
fixed #2089 : added language bidirectional support and updated the admin to use it. thanks meir@mksoft!
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3091 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-06 15:22:53 +00:00
Jacob Kaplan-Moss
42a34423f2
Fixed stupid bug in [3802]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3083 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-05 15:25:12 +00:00
Jacob Kaplan-Moss
55b6559b0e
Small refactoring of django.core.management to allow a custom argv to be passed into execute_manager(). This makes custom manage scripts with extra options possible
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3082 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-05 15:20:47 +00:00
Luke Plant
9b86db9bf2
Eliminated lots of mutable default arguments (since they are bugs
...
waiting to happen and are memory leaks too).
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3070 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-03 13:37:34 +00:00
Adrian Holovaty
88d215f702
Fixed #2073 -- Improved 'manage.py shell' not to pass argv to IPython if it's installed. Thanks, jpellerin@gmail.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3069 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-02 19:04:09 +00:00
Adrian Holovaty
bd5b35069b
Fixed #2025 -- Fixed some issues with URL reversal, which still isn't ready for prime time. Thanks, medhat
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3057 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-02 04:38:16 +00:00
Luke Plant
dbcd2fe985
Fixed #2045 - TypeError thrown if a form does not have the correct enctype for uploading
...
files. It throws a ValidationError now, as it should.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3048 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-01 20:47:34 +00:00
Adrian Holovaty
cb9cb2045b
Fixed #720 -- Added first_on_page() and last_on_page() methods to ObjectPaginator. Thanks, m@bagai.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3040 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-01 04:29:39 +00:00
Adrian Holovaty
1bf991abb3
Fixed #2049 -- Made isValidEmail validator wider in scope. Thanks, mir@noris.de
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3026 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-31 18:08:28 +00:00
Adrian Holovaty
d3b1a9ba39
Fixed #2015 -- Fixed sqlinitialdata regexp to handle empty string insertions. Thanks, Steven Armstrong
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3003 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-30 01:11:27 +00:00
Adrian Holovaty
374d02e598
Fixed #1023 -- Base handler no longer calls mail_admins() on SystemExit, in case of forked processes called from views. Thanks, Hugo
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2990 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-26 17:30:40 +00:00
Adrian Holovaty
0fd9eef86f
Fixed #1935 -- Initial SQL data now works in SQLite if there are multiple statements. Thanks, jpellerin@gmail.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2985 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-26 05:20:21 +00:00
Adrian Holovaty
f375b54503
Fixed #1634 -- Changed django.core.mail to include 'Date' header in e-mails. Thanks, Eric Walstad
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2984 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-26 04:40:48 +00:00
Malcolm Tredinnick
816b65f260
Prevent people from using "startapp" to create apps with the same name as their project. Might stop some of the accidents.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2946 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-19 07:40:06 +00:00
Adrian Holovaty
d9c4af6b37
Added first stab at reverse matching to urlresolvers.py
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2910 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-16 04:05:55 +00:00
Jacob Kaplan-Moss
aa11b3ea50
Fixed #1235 : email sent from {{{django.core.mail}}} will now be encoded using
...
the value of the {{{DEFAULT_CHARSET}}} setting. Thanks, igor@goryachev.org and akaihola.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2901 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-13 17:18:42 +00:00
Adrian Holovaty
c63372f3c4
Fixed #1819 -- inspectdb no longer puts null=True for TextField and CharField. Thanks, mir@noris.de
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2872 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-09 15:36:14 +00:00
Adrian Holovaty
058ab898b0
Improved runserver to display 'CONTROL-C' vs. 'CTRL-BREAK' based on the current platform
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2852 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-06 03:29:22 +00:00
Adrian Holovaty
cca0e7346d
Fixed #1762 -- Fixed Windows error in django.core.management. Thanks, ross.lazarus@gmail.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2845 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-05 04:08:14 +00:00
Adrian Holovaty
427a54b4a3
Fixed #1719 -- Added rlcompleter autocompletion to 'manage.py shell' if IPython is not used.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2842 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-05 03:17:51 +00:00
Adrian Holovaty
9fec605d8d
Fixed #1766 -- Fixed bug in syncdb where it allowed two models to have the same database table. Thanks, Ian Clelland
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2835 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-05 02:38:32 +00:00
Adrian Holovaty
f69cf70ed8
MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly backwards-incompatible. Please read http://code.djangoproject.com/wiki/RemovingTheMagic for upgrade instructions.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2809 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-02 01:31:56 +00:00
Adrian Holovaty
00b3891524
Fixed #1626 -- Fixed a bunch of typos in comments and docs. Thanks, Dexter
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2687 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-12 13:35:31 +00:00
Adrian Holovaty
853ee34191
Fixed #1531 -- Fixed eager exception catching that caused the template system to report a base template didn't exist when indeed it does exist but contains an {% include %} of a nonexisting template
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2681 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-12 03:31:03 +00:00
Adrian Holovaty
c862e43f7f
Negligible spacing change to core/template/loader.py
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2680 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-12 03:29:41 +00:00
Adrian Holovaty
8ac114c017
Removed unneeded 'import sys' from base.py handler
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2668 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-11 03:30:10 +00:00
Adrian Holovaty
51a6d81d72
Fixed #1551 -- Improved base handler to not lose track of important exception in case of exceptions within repr(). Thanks, Ned
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2667 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-11 03:29:01 +00:00
Adrian Holovaty
8d70ed4b25
Fixed #1555 -- Added EMAIL_PORT setting. Thanks, bde3
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2665 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-11 03:23:03 +00:00
Adrian Holovaty
cd7dbd8f00
Converted django.core.mail to use 'from django.conf import settings' instead of importing specific settings directly
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2664 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-11 03:19:57 +00:00
Adrian Holovaty
b9e40b14bc
Renamed OneToOne to OneToOneRel to be consistent with ManyToManyRel
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2650 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-10 03:35:56 +00:00
Adrian Holovaty
b8d8aca5fd
Renamed ManyToOne to ManyToOneRel to be consistent with ManyToManyRel
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2649 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-10 03:34:47 +00:00
Adrian Holovaty
e3e271ff92
Fixed #1600 -- Renamed ManyToMany to ManyToManyRel so people get a clearer error if they use ManyToMany instead of ManyToManyField
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2648 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-10 03:32:38 +00:00
Adrian Holovaty
0162a3b54f
Fixed #1590 -- Changed MySQL get_last_insert_id() implementation to use cursor.lastrowid instead of a separate SELECT statement. Thanks, Andy Dustman
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2645 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-10 00:32:42 +00:00
Adrian Holovaty
bc4638d722
Fixed #1569 -- HttpResponse now accepts iterators. Thanks, Maniac
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2639 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-09 23:54:34 +00:00
Adrian Holovaty
341d1eb022
Fixed #1550 -- Changed MatchesRegularExpression validator to use .search(), not .match(). Thanks, Gary Wilson
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2588 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-28 21:39:15 +00:00
Adrian Holovaty
b353103cb6
Fixed #1500 -- Changed MySQL AutoField to be integer, not mediumint. Thanks, ejf-django
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2582 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-28 17:46:53 +00:00
Adrian Holovaty
67cbb5c248
Fixed #1442 -- Fixed multithreading problem with various database backends. Thanks, Eugene Lazutkin
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2579 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-28 17:39:53 +00:00
Adrian Holovaty
1edef8ede9
Fixed #1548 -- Improved caching of related objects, so when clist = poll.get_choice_list(), each choice in clist has its poll cache filled. Thanks, Ned Batchelder
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2574 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-28 16:51:17 +00:00
Adrian Holovaty
332c4bd695
Removed stray 'print' statement in ManyToManyField.flatten_data(). Thanks, burivuh
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2558 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-24 19:13:21 +00:00
Adrian Holovaty
fe24eca81a
Fixed #1529 -- Added support for authenticated SMTP to django.core.mail. Thanks, Bruce Kroeze
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2548 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-22 19:47:15 +00:00
Adrian Holovaty
401b83f172
Fixed bug in [2531]. Thanks, Ned
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2533 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-20 01:04:09 +00:00
Adrian Holovaty
33c4e307f2
Simplified two unnecessary list comprehensions in core/meta/__init__.py. Thanks, Ned Batchelder
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2531 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-19 23:41:59 +00:00
Adrian Holovaty
e4b48a8b92
Fixed #1058 -- Fixed typo in wordwrap filter documentation. Thanks, kieranholland.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2471 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-02 05:53:58 +00:00
Adrian Holovaty
6d9f4e4ef6
Fixed #1213 -- Changed value of NOT_PROVIDED so that it's not a string, to prevent possible (but highly unlikely) collisions. Thanks, akaihola
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2454 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-01 03:51:55 +00:00
Adrian Holovaty
ace140662b
Added note to mysql backend about DATE_FORMAT not working. Refs #1423
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2450 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-01 03:17:24 +00:00
Jacob Kaplan-Moss
f15a983d88
Fixed #1336 -- made USStateField work correctly when data is None (thanks, chrisb)
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2427 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-27 23:45:17 +00:00
Adrian Holovaty
250281361d
Changed get_object() not to use 'ordering' parameter from the model. Thanks, Ned Batchelder. Also updated some unit tests to show correct DoesNotExist output
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2392 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-25 17:24:17 +00:00
Adrian Holovaty
de66a3a7da
Rolled back [2390] temporarily to test against some other edge cases
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2391 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-25 17:18:27 +00:00
Adrian Holovaty
79633b280c
Changed get_object() not to use 'ordering' parameter from the model. Thanks, Ned Batchelder
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2390 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-25 17:14:49 +00:00
Adrian Holovaty
c5073320a7
Refactored cache from django/core/cache.py into django/core/cache package, with each backend getting a separate module. This keeps things cleaner and uses less memory, because the backend module is only loaded if it's needed.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2378 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-24 06:07:01 +00:00
Adrian Holovaty
0bf0b6d896
Fixed #1275 and #1288 -- Change e-mail address validator regular expression to be faster, simpler and accept subdomains
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2367 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-22 17:13:08 +00:00
Adrian Holovaty
f86004a4d3
Fixed #1376 -- Undid [2358], which broke flatpages. Thanks, Tom Tobin
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2364 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-20 04:36:17 +00:00
Adrian Holovaty
c72afb811b
Changed 'runserver' to display the Django version, and massaged the wording a little bit.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2359 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 23:48:11 +00:00
Adrian Holovaty
2c443df341
Fixed #894 -- Moved response middleware call to base.py so that exceptions in that middleware get processed by the standard exception handling. As a nice side effect, this cuts down on a bit of redundant code.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2358 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 23:41:17 +00:00
Adrian Holovaty
53ca15cd78
Fixed #1289 -- Improved 'inspectdb' to introspect decimal_places and max_digits for FloatFields. Thanks, gandalf@owca.info
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2356 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 23:04:09 +00:00
Adrian Holovaty
cf528aa420
Fixed #721 -- isAlphaNumericURL validator now allows dashes
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2353 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 22:36:16 +00:00
Adrian Holovaty
4d1bb30480
Reworded comment atop inspectdb-generated models to imply primary_key may now be introspected
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2350 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 22:06:42 +00:00
Adrian Holovaty
64153ef4d5
Implemented get_indexes() for Postgres backend, which means 'inspectdb' can introspect primary keys and unique indexes for Postgres now.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2349 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 22:04:52 +00:00
Adrian Holovaty
5710c6e2db
Changed get_indexes() hook from [2346] to return 'primary_key' instead of 'keyname'
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2348 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 21:57:38 +00:00
Adrian Holovaty
27b41fd9de
Added better docstring to get_indexes() for MySQL backend
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2347 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 21:28:19 +00:00
Adrian Holovaty
ac97cf54af
Fixed #1286 -- Improved 'inspectdb' so that it introspects primary_key=True and unique=True for MySQL. Thanks, gandalf@owca.info
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2346 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 21:26:28 +00:00
Adrian Holovaty
b46128225d
Removed unnecessary line in d.c.meta.fields, due to [2342]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2343 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 20:55:59 +00:00
Adrian Holovaty
40809bdee4
Fixed #1038 -- Changed ForeignKey to calculate verbose_name by looking at its field name rather than the model of the related object. Thanks, Esaj
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2342 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 20:44:09 +00:00
Adrian Holovaty
25b149a2a5
Fixed #1148 -- Fixed off-by-one error for some databases in get_DATEFIELD_list() at the edge of a year. Thanks, Hugo
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2338 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 20:18:45 +00:00
Adrian Holovaty
a10e8153f3
Fixed #1177 -- Added django.VERSION and '--version' command to django-admin.py/manage.py
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2328 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-17 18:33:09 +00:00
Adrian Holovaty
e9c3efe7f3
Fixed #1348 -- {% ifchanged %} tag no longer renders content twice. Thanks, j.rademaker
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2326 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-17 18:18:03 +00:00
Adrian Holovaty
97eb38b21d
Fixed #1296 -- Made SlugField maxlength configurable. Thanks, Matt
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2325 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-17 18:15:07 +00:00
Adrian Holovaty
15f57d8c55
Fixed #1357 and #614 -- <select> formfields now escape values
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2321 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-17 17:55:41 +00:00
Adrian Holovaty
d8b4d29004
Improved url_re in django.core.validators to accept https. Thanks, Eric Hsu
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2299 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-10 15:38:54 +00:00
Adrian Holovaty
e0c915ec39
Added TEMPLATE_STRING_IF_INVALID setting, which specifies what the template system should output in case of invalid variables. Default is empty string (to match current behavior)
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2294 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-09 00:31:51 +00:00
Adrian Holovaty
c59901a467
Improved 'inspectdb' handling of Python keywords from [2271] to use the 'keywords' module rather than hard-coding the list of keywords.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2272 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-04 20:18:18 +00:00
Adrian Holovaty
9423c4e4a8
Fixed #1328 -- Improved 'inspectdb' to handle Python reserved words as field names. Also updated docs.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2271 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-04 20:08:30 +00:00
Adrian Holovaty
567e4e4411
Fixed #1323 -- Added ENABLE_PSYCO. Thanks, Wojtek.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2239 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-03 15:18:20 +00:00
Adrian Holovaty
2549b31970
Fixed #1292 -- Fixed potential circular-import problem in template loader. Thanks, Kieran Holland
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2226 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-02 05:07:12 +00:00
Adrian Holovaty
9789766508
Fixed #1311 -- manage.py sqlclear no longer assumes database connection is available. Thanks, jakamkon@gmail.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2224 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-02 04:50:16 +00:00
Adrian Holovaty
b4af15e66c
Made small improvement to function_get_date_list
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2176 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-30 04:13:00 +00:00
Adrian Holovaty
e15567bf58
Fixed #1070 -- Improved date validation to limit it to dates 1900 and up.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2134 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-27 16:05:00 +00:00
Adrian Holovaty
1dc65cb6ab
Fixed #1271 -- Added a 'request' template context processor, which is not activated by default.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2133 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-27 15:55:04 +00:00
Adrian Holovaty
6f3f25e733
Fixed bug in spaceless template-tag documentation. Thanks, Esaj
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2014 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-16 21:44:10 +00:00
Adrian Holovaty
f1f2005c05
Fixed #1231 -- Added documentation for {% spaceless %} tag to the auto-generated template-tag docs in the admin
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2012 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-16 18:59:43 +00:00
Adrian Holovaty
e0af20fb0f
Fixed #1064 -- Fixed bug in set_many_to_many() for ManyToManyField pointing at a OneToOneField. Thanks, bruce@cubik.org and Luminosity
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1976 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-15 06:10:02 +00:00
Adrian Holovaty
6e50a2ef5d
Fixed #1062 -- Fixed database typecasting bug for DateTimeFields in SQLite. Thanks, Nesh and cmaloney
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1971 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-15 05:54:47 +00:00
Adrian Holovaty
2667ead885
Fixed #1165 -- Fixed bug in generated CREATE TABLE statements where a primary key related to a PositiveIntegerField or PositiveSmallIntegerField. Thanks, avandorp@gmail.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1970 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-15 05:48:13 +00:00
Adrian Holovaty
0eaee6f5d4
Fixed #1067 and #276 -- Added a {% spaceless %} tag, available in all templates
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1967 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-15 01:51:30 +00:00
Adrian Holovaty
e260037e16
Fixed #1218 -- Improved model validator to complain for non True/False values for 'db_index' parameter
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1966 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-15 01:15:44 +00:00
Adrian Holovaty
39639cfd22
Fixed #1176 -- Changed {% comment %} template tag not to generate a nodelist, so it's now possible to comment-out broken template tags. Thanks, Kieran Holland
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1964 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-15 00:48:23 +00:00
Adrian Holovaty
5e6d6fafae
Fixed #1202 -- Changed 'manage.py shell' to use IPython if present. Also added '--plain' option, which overrides IPython to use the standard Python interactive prompt
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1930 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-12 20:56:10 +00:00
Adrian Holovaty
51a699dea9
Fixed #1203 -- Fixed two typos in cache.py. Thanks, Eugene
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1922 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-12 02:35:14 +00:00
Adrian Holovaty
b94d78772f
Added 'shell' option to django-admin.py and manage.py
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1900 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-11 01:57:22 +00:00
Adrian Holovaty
7573756e18
Fixed #1195 -- Fixed formfields.TimeField bug introduced in [1872]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1883 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-09 05:11:13 +00:00
Adrian Holovaty
580a8eb42f
Fixed #1110 -- wordwrap template filter now calls str() on input. Thanks, scum
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1882 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-09 02:08:29 +00:00
Adrian Holovaty
11bcc7969d
Fixed #1121 -- Changed MySQL backend to use correct character set in MySQL 4.1x/5.x on Win32. Thanks, hipertracker@gmail.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1878 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-09 01:55:37 +00:00
Adrian Holovaty
9f0deae249
Fixed #1034 -- Changed get_last_insert_id to quote database table name. Thanks, rfugger
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1875 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-09 01:33:59 +00:00
Adrian Holovaty
7d0bf5f2dc
Fixed #1188 -- Changed TimeField.html2python to handle microseconds. Thanks, Cheng
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1872 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-09 00:54:35 +00:00
Adrian Holovaty
6719511497
Fixed #1187 -- Added field name to error message for missing PIL. Thanks, akaihola
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1859 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-08 06:31:24 +00:00
Adrian Holovaty
bbfc645337
Fixed #1181 -- get_in_bulk no longer fails on empty input. Also added unit tests. Thanks, akaihola
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1834 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-06 20:43:14 +00:00
Adrian Holovaty
6cca806943
Added 'dummy' cache backend
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1815 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-03 23:41:31 +00:00
Adrian Holovaty
53aef92bf8
Fixed #1145 -- Added unit tests for default template filters and fixed two bugs in filters. Thanks, Luke Plant
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1811 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-01 18:37:33 +00:00
Adrian Holovaty
528b4ebd8d
Fixed #1139 -- Changed django.core.mail to raise BadHeaderError (a subclass of ValueError) and changed docs/email.txt example to use that
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1798 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-29 22:12:54 +00:00
Adrian Holovaty
8b5c2192e8
Fixed #1135 -- Changed django.core.mail functions not to allow newlines in headers
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1795 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-29 20:33:56 +00:00
Adrian Holovaty
b28e5e4133
Added missing context_processors module from [1773]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1774 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-24 04:41:10 +00:00
Adrian Holovaty
49fd163a95
Fixed #925 -- Added TEMPLATE_CONTEXT_PROCESSORS, which lets you specify processesors for DjangoContext. Thanks, Luke Plant
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1773 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-24 04:39:59 +00:00
Adrian Holovaty
909cf0822f
Fixed #1093 -- Fixed error in inspectdb from [1688]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1744 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-20 15:53:01 +00:00
Adrian Holovaty
3a11722860
Changed django.core.formfields.CheckboxSelectMultipleField NOT to use the '_' variable
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1732 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-19 03:31:08 +00:00
Adrian Holovaty
3235f0298a
Fixed #1075 -- Fixed bug in edit_inline. Thanks, Eric Moritz
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1717 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-17 19:32:15 +00:00
Adrian Holovaty
e296de5500
Changed resolve_variable to resolve integers and floats as integers and floats. Added ifequal unit tests. Refs #959
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1690 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-16 05:33:24 +00:00
Adrian Holovaty
676830165a
Fixed #646 -- inspectdb no longer fails on database tables with hyphen in the name. Thanks for reporting, jack at xiph.org
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1688 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-16 05:13:25 +00:00
Adrian Holovaty
f2e5382811
Fixed #1039 -- Changed file-based cache to cache EOFErrors during pickle. Thanks for the patch, Eugene
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1685 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-16 04:55:52 +00:00
Georg Bauer
3c4c6e0f96
fixes #1066 - yesno used the wrong way to do translations
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1673 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-15 15:56:26 +00:00
Georg Bauer
328836208c
added a missed translation to the admin (the error message when you try to add a duplicate record)
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1644 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-14 16:30:40 +00:00
Adrian Holovaty
800cac7e31
Negligible refactoring in django.core.meta.fields and django.contrib.admin.views.main. Taken from #1020 . Refs #1020
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1591 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-10 05:32:05 +00:00
Adrian Holovaty
06a2dc42b2
Fixed #1032 -- CREATE TABLE SQL in Postgres now quotes column name in 'CHECK' clause. Thanks, exoweb adrian
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1583 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-09 03:32:45 +00:00
Adrian Holovaty
7d0bcc5727
Fixed exception-handling bug in defaulttags SsiNode. Thanks, Henryk on IRC
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1582 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-09 03:30:07 +00:00
Adrian Holovaty
5fe45cb0f8
Fixed #967 -- 'tables' parameter in DB API is now only quoted if needed. Thanks, Russell Keith-Magee
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1581 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-09 03:08:51 +00:00
Adrian Holovaty
99f0f414d5
Fixed #1006 -- Fixed error when using ChangeManipulator in a model with raw_id_admin on ForeignKey. Thanks, Gustavo Picon
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1577 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-09 02:32:59 +00:00
Adrian Holovaty
58220b17d6
Fixed #1017 -- Admin now selects single choice for ForeignKey fields if only one choice is available. Thanks for reporting, Eugene
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1575 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-09 02:25:17 +00:00
Adrian Holovaty
9e2b463baf
Fixed inconsistent spacing in core/meta/fields.py
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1573 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-09 02:15:54 +00:00
Adrian Holovaty
36f1aef5ff
Fixed #927 -- Non-integer primary keys save() method now works
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1569 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-09 01:46:14 +00:00
Adrian Holovaty
374a6eaa4c
Fixed #1009 -- Fixed small typo in HasAllowableSize validator. Thanks, bsoltani
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1564 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-07 05:13:18 +00:00
Adrian Holovaty
28263d6675
Added conf/project_template/manage.py, which is a light wrapper around django-admin.py that gets installed in each project with 'startproject'. It takes care of the PYTHONPATH and DJANGO_SETTINGS_MODULE business automatically.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1556 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-06 05:53:31 +00:00
Adrian Holovaty
17108bc190
Negligible capitalization change in django.core.management
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1555 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-06 05:38:56 +00:00
Adrian Holovaty
50cac9d276
Factored out django.core.management ACTION_MAPPING into DEFAULT_ACTION_MAPPING, so execute_from_command_line now takes an action_mapping parameter (DEFAULT_ACTION_MAPPING by default)
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1554 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-06 05:35:07 +00:00
Adrian Holovaty
6d210ef403
Moved all logic from django-admin.py into django.core.management, into a new execute_from_command_line() function, so it can be called from other scripts. Also improved createproject to disallow 'django' and 'test' as project names.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1553 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-06 05:17:52 +00:00
Jacob Kaplan-Moss
0020326520
Fixed bug in get_next_by_FOO/get_previous_by_FOO methods that caused a database error when using those methods along with joining lookup contraints (i.e. "obj.get_next_by_pub_date(related__id__in=some_list)")
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1550 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-05 17:40:19 +00:00
Adrian Holovaty
3cd7755ec6
Fixed #982 -- Added '__ne__' support for Django models, which apparently wasn't working on Python 2.3 (?)
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1547 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-05 03:39:18 +00:00
Georg Bauer
c464e57da9
reverted changes from [1534] and [1536] regarding ticket #966
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1541 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-04 18:54:44 +00:00
Georg Bauer
4ef077c593
fixes #989 - new 'no' translations for JavaScript
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1534 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-04 13:48:50 +00:00
Adrian Holovaty
9ede371c85
Fixed #971 -- inspectdb for SQLite now introspects field types.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1518 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-01 06:32:25 +00:00
Adrian Holovaty
38b8d18091
Fixed #965 -- 'django-admin.py sqlsequencereset' now includes m2m tables. Thanks for reporting, exoweb adrian
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1517 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-01 06:09:36 +00:00
Adrian Holovaty
a58dc0dbbd
Fixed #452 -- Fixed bug in generated DB API for models that have two ManyToManyFields to the same related model.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1516 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-01 06:02:45 +00:00
Adrian Holovaty
9e2eccc1ab
Improved model validator to throw error if a model has two ManyToMany relationships to the same model and doesn't set 'singular'. Refs #452 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1513 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-01 05:46:18 +00:00
Adrian Holovaty
e0f0532305
Small fix to a comment in django.core.meta.init
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1512 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-01 05:28:05 +00:00
Jacob Kaplan-Moss
c28daf2289
Fixed #757 : manually set AutoField values are now respected; also added unit test to verify the correct behavior. Thanks, cygnus.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1511 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-01 03:06:30 +00:00
Adrian Holovaty
9541d7a7c7
Fixed #251 -- Added OR support to queries, via the new 'complex' DB API keyword argument. Updated docs and added unit tests. Also removed old, undocumented '_or' parameter. Thanks, Hugo.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1508 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-30 06:14:05 +00:00
Adrian Holovaty
991bb61242
Fixed #736 -- Changed behavior of QueryDict items() to be more consistent, fixed mutability holes, gave MultiValueDict many more dictionary methods and added unit tests. Thanks, Kieran Holland. This is slightly backwards-incompatible if you happened to rely on the behavior of QueryDict.items(), which is highly unlikely.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1504 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-30 04:08:46 +00:00
Adrian Holovaty
3cb20c45c7
Moved Apache auth handler to django/contrib/auth/handlers/modpython.py
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1500 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-30 01:14:23 +00:00
Adrian Holovaty
e2e98aff6a
Fixed #962 -- Gave filter-registration decorator a return statement. Thanks, Kieran
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1497 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-30 00:08:56 +00:00
Jacob Kaplan-Moss
ae76186a4f
Added mod_python authentication handler and document on authenticating against Django's auth database from Apache
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1495 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-29 18:26:07 +00:00
Adrian Holovaty
29d1598cce
Added a GOTCHA comment in django/core/template/init.py
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1488 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-29 05:53:05 +00:00
Adrian Holovaty
1ce5ef6166
Fixed error in raw_id_admin on ManyToManyFields caused by [1434] -- they weren't working.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1485 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-29 05:22:51 +00:00
Adrian Holovaty
de7a336486
Fixed #460 -- Added 'django-admin.py inspectdb' support for SQLite. Thanks, Swaroop
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1484 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-29 02:05:32 +00:00
Adrian Holovaty
539e5af17c
Fixed #490 -- Fixed incorrect handling of cursor.rowcount in yet-unused database_check functionality. Thanks, Eugene
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1483 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-29 01:04:28 +00:00
Adrian Holovaty
9e3efbecf8
Restored {% debug %} template tag, which was inadvertently removed in [1443]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1481 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-28 20:48:08 +00:00
Adrian Holovaty
e85b071e47
Fixed #798 and #715 -- Added optional arguments to createsuperuser, for each use in shell scripts. Thanks for the patch, bjorn@exoweb.net
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1474 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-28 02:57:38 +00:00
Adrian Holovaty
cc3660c07d
Fixed #878 -- URLconf regex captures no longer have to be named groups. Old URLconfs (with named groups) still work. This is backwards-incompatible if you've defined custom middleware with a process_view function. See http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1470 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-27 22:08:51 +00:00
Adrian Holovaty
8c3b41c3e9
Removed unnecessary load_template_source() function in django/core/template/loader.py
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1469 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-27 21:37:41 +00:00
Adrian Holovaty
3cf5d034db
Fixed #931 -- Fixed unordered_list template filter
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1466 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-27 19:38:07 +00:00
Adrian Holovaty
2fb95f1de6
Changed template library system so that it looks for a module-level variable named 'register' rather than the first instance of template.Library it finds
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1461 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-27 16:43:56 +00:00
Adrian Holovaty
fc102791d8
Fixed bug in [1443] -- slice filter was registered as 'slice_'
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1449 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-27 01:55:55 +00:00
Georg Bauer
0e9081e6de
loading of templates in includes now reraises the template loading exception instead of returning nothing
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1448 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-27 00:26:16 +00:00
Georg Bauer
53330a9274
unknown sources are now shown correctly as <unknown source> (before it was shown as a tag)
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1447 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-27 00:01:11 +00:00
Adrian Holovaty
c83fa94391
Fixed bug in [1443] -- Missing Context import in django.core.template.loader
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1446 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-26 23:11:19 +00:00
Adrian Holovaty
adef71d2c4
Fixed bug in [1443] -- renamed compile_filters call to compile_filter
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1445 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-26 23:10:09 +00:00
Adrian Holovaty
ac91a22ec2
Fixed bug in [1443] -- a decorator call was left in
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1444 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-26 23:07:09 +00:00
Adrian Holovaty
3ede006fc9
Fixed #911 -- Made template system scoped to the parser instead of the template module. Also changed the way tags/filters are registered and added support for multiple arguments to {% load %} tag. Thanks, rjwittams. This is a backwards-incompatible change for people who've created custom template tags or filters. See http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges for upgrade instructions.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1443 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-26 22:46:31 +00:00
Adrian Holovaty
5676d5b068
Fixed #923 -- Made WSGI handler tolerant of no QUERY_STRING in os.environ. Thanks, michael.mcewan
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1442 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-26 18:41:29 +00:00
Adrian Holovaty
9dda4abee1
MERGED NEW-ADMIN BRANCH (except for po/mo files, which will come in a separate commit)
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1434 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-25 21:20:09 +00:00
Adrian Holovaty
69f8840900
Fixed #882 -- Fixed bug when doing django-admin.py sqlclear with SQLite. Thanks, ye7cakf02
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1429 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-25 04:27:50 +00:00
Adrian Holovaty
807b406859
Added translation strings to django/core/meta/fields.py. Taken from new-admin.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1423 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-25 02:37:57 +00:00
Adrian Holovaty
9898c4ae02
Added translation strings to core/formfields.py. Taken from new-admin.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1422 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-25 02:32:37 +00:00
Adrian Holovaty
c5e5c0fc35
Fixed #625 -- Added template-tag decorators simple_tag and inclusion_tag. Taken from new-admin. Thanks, rjwittams
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1410 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-25 00:54:40 +00:00
Adrian Holovaty
22746d32a5
Added a get_template_sources generator function to filesystem and app_directories template loaders, so template-loader debugger can hook into it. Refs #892 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1399 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24 21:14:42 +00:00
Adrian Holovaty
5d863f1fbd
Fixed #603 -- Added template debugging errors to pretty error-page output, if TEMPLATE_DEBUG setting is True. Also refactored FilterParser for a significant speed increase and changed the template_loader interface so that it returns information about the loader. Taken from new-admin. Thanks rjwittams and crew
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1379 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-23 23:10:17 +00:00
Adrian Holovaty
08a494c40d
Added better error handling for trailing periods in URLconf include()s
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1376 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-23 21:44:48 +00:00
Adrian Holovaty
1663623fad
Fixed grammar error in error message from [1355]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1356 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-22 19:41:43 +00:00
Adrian Holovaty
b58c820558
Fixed #879 -- Middleware loader now throws a better error for MIDDLEWARE_CLASSES value without a dot. Thanks, Noah Slater
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1355 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-22 19:41:09 +00:00
Adrian Holovaty
bedf10a98d
Fixed #598 -- Added {% include %} template tag. Added docs and unit tests. Thanks, rjwittams
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1349 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-22 05:44:04 +00:00
Adrian Holovaty
8a2d9fc2f4
Tiny logic tightening in core.template.loader -- taken from new-admin
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1347 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-22 05:11:14 +00:00
Adrian Holovaty
7911173ccc
Removed trailing slash in PROFILE_DATA_DIR in profiler-hotshot to match new-admin
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1346 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-22 05:04:56 +00:00
Jacob Kaplan-Moss
b6ddc9d3c1
Fixed use of "_" in RelaxNGCompact validator which was conflicting with gettext tag
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1340 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-22 03:39:39 +00:00
Georg Bauer
a87d43f809
fixed a bug with some validators that used parameterized gettext_lazy strings and forced them to the default language because of the % operator. Now lazy string interpolation is used.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1330 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-21 11:10:19 +00:00
Georg Bauer
7b201f6e52
fixed a bug that prevented the unique validation to work
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1329 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-21 11:09:36 +00:00
Georg Bauer
e4e28d907a
fixes #753 - ValidationError and CriticalValidationError now accept both strings and promises from gettext_lazy
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1328 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-21 10:41:54 +00:00
Adrian Holovaty
f1a8869339
Fixed #800 -- Fixed bug in treatement of underscores and percent signs in SQLite backend. In order to do this, changed OPERATOR_MAPPING in DB backends to include a format string of the field value, because ESCAPE comes after the field value.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1326 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-21 02:46:15 +00:00
Adrian Holovaty
270377cb37
Fixed #861 -- Model validator now validates unique_together
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1323 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-21 01:45:15 +00:00
Adrian Holovaty
7a80b2cc98
Fixed bug for OneToOneFields in the admin -- the manipulator_validator_unique wasn't doing the correct lookup
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1322 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-21 01:39:18 +00:00
Adrian Holovaty
de770472b1
Fixed #527 -- Changed method_get_related() to use rel.get_related_field() instead of rel.field_name
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1319 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-21 00:05:18 +00:00
Adrian Holovaty
fc0200857b
Gave formfields.EmailField a maxlength kwarg
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1317 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-20 23:48:36 +00:00
Adrian Holovaty
d778326c52
Gave EmailField a get_internal_type() method and removed it from DATA_TYPES in all the database backends
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1316 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-20 22:41:41 +00:00
Adrian Holovaty
928318faf9
Fixed #484 -- Model validator now raises an error for FloatFields without max_digits or decimal_places
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1314 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-20 22:28:57 +00:00
Adrian Holovaty
6f249c856b
Fixed #527 and #768 -- Fixed longstanding bug with OneToOneFields. All unit tests now pass
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1313 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-20 22:18:41 +00:00
Adrian Holovaty
56e40c5884
Fixed #815 -- 'select' keyword in DB API calls is now quoted correctly. Thanks, Hugo
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1274 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-17 15:00:23 +00:00
Adrian Holovaty
a469d821a1
Changed FormWrapper.fields (from [1253]) to be a property, so that it's only called when needed.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1257 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-16 00:33:50 +00:00
Jacob Kaplan-Moss
991039dd1e
Fixed #587 - iteration through formfields in a FormWrapper is now allowed (thanks, Boffbowsh)
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1253 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-15 23:28:43 +00:00
Jacob Kaplan-Moss
d0ec43298a
Fixed bug in postgresql backend that prevented the user of passwords with spaces in them.
...
Use pass *phrases*, folks, they're grrrrreat!
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1236 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-15 05:52:25 +00:00
Jacob Kaplan-Moss
0710243ea1
Added "pretty" error pages to be used when DEBUG is True.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1233 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-14 17:44:50 +00:00
Adrian Holovaty
f6bf41e59a
Fixed #121 -- Django now quotes all names in SQL queries. Also added unit tests to confirm. Thanks, Robin Munn and Sune.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1224 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-14 01:44:35 +00:00
Adrian Holovaty
3273c981f8
Moved db.quote_name from a model-level function to a method of DatabaseWrapper for all database backends, so quote_name will be accessible in a 'from django.core.db import db' context
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1213 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-13 05:11:41 +00:00
Georg Bauer
367ce0ce92
fixes #764 - the TokenParser now respects string parameters to filters that contain blanks.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1207 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-12 21:45:01 +00:00
Adrian Holovaty
0a74c68eee
Fixed #778 -- Improved isExistingURL validator not to raise ValidationError for URLs that exist but require authorization. Thanks for the report, lakin wrecker.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1202 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-12 20:25:47 +00:00
Adrian Holovaty
944de9e9e6
Completely refactored legacy RSS framework to the new django.contrib.syndication package. Also added Atom support, changed the way feeds are registered and added documentation for the whole lot. This is backwards-incompatible, but the RSS framework had not yet been documented, so this should only affect tinkerers and WorldOnline. Fixes #329 , #498 , #502 and #554 . Thanks for various patches/ideas to alastair, ismael, hugo, eric moritz and garthk
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1194 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-12 03:44:53 +00:00
Adrian Holovaty
565a194702
Implemented quote_name() for ado_mssql DB backend. Thanks, Jakub Labath and Eugene Lazutkin
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1176 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-11 19:11:11 +00:00
Adrian Holovaty
8613b74367
Fixed #763 -- cache system now catches OSError for os.remove() call. Thanks, Eugene
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1158 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-10 16:37:45 +00:00
Adrian Holovaty
e3e37ed120
Fixed #724 -- Ensured get_next_by_FOO() and get_previous_by_FOO() methods don't skip or duplicate any records in the case of duplicate values. Thanks for reporting the bug, mattycakes@gmail.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1155 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-10 05:36:41 +00:00
Adrian Holovaty
68397a3654
Fixed #686 -- django-admin.py sqlreset and sqlclear no longer assume the admin app is installed.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1151 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-09 23:50:32 +00:00
Adrian Holovaty
2ef937d0fd
Fixed #683 -- Lightly refactored meta.fields.Field to add an attname attribute.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1150 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-09 23:37:41 +00:00
Adrian Holovaty
95cc5772c3
Factored FORM_FIELD_ID_PREFIX out into a get_id() method in formfields.py -- thanks for the idea, rjwittams
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1148 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-09 22:40:02 +00:00
Jacob Kaplan-Moss
31d18380f9
Fixed #761 ; thanks, Eugene
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1143 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-09 18:29:58 +00:00
Adrian Holovaty
0b1d24c54d
Renamed enclosure_url, enclosure_length and enclosure_mime_type to give them an 'item_' prefix, in the new RSS framework
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1141 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-09 17:49:57 +00:00
Adrian Holovaty
4345866965
Added django.core.rss.Feed -- the new RSS interface. Refs #329 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1131 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-09 00:50:01 +00:00
Adrian Holovaty
a218cf5798
Fixed #281 -- Made e-mail address validation much more strict and accurate.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1106 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-06 22:59:18 +00:00
Adrian Holovaty
0292578745
Fixed #312 -- Fixed bug when adding images in the admin when edit_inline and width field is set. Thanks, nichyoung
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1104 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-06 22:46:56 +00:00
Adrian Holovaty
e19c9ccfcb
Reworded docstrings and settings documentation from [1068]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1098 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-06 22:22:02 +00:00
Adrian Holovaty
24f666656f
Fixed #737 -- Changed validators.isValidIPAddress4 to use a single regex. Thanks, mattimustang
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1093 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-06 17:55:39 +00:00
Adrian Holovaty
181ee4ae31
Added meta.Admin list_select_related option, which specifies to use select_related in the change-list query
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1092 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-05 18:14:17 +00:00
Adrian Holovaty
8ee33da585
Fixed #734 -- Fixed namespace bug in validators.isValidIPAddress4. Thanks, Hugo and mflanagan
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1091 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-05 17:59:16 +00:00
Jacob Kaplan-Moss
5cf8f68423
Merged i18n branch into the trunk! Fixes #65 , and perhaps some others. NB: this means that the i18n branch is now obsolete and will be made read-only.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1068 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-04 04:59:46 +00:00
Jacob Kaplan-Moss
91a283583c
Made floatformat filter not choke on non-floats
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1050 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-02 19:01:27 +00:00
Adrian Holovaty
23bb8c4a4b
Added quote_name hook for each database backend. Refs #121 . Thanks, Robin Munn -- we miss you.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1039 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-01 01:32:54 +00:00
Adrian Holovaty
c65332d409
Updated out-of-date docstring in django/core/db/__init__.py
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1038 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-01 01:28:42 +00:00
Adrian Holovaty
cee6faf43e
Fixed #505 -- ssi template tag now displays a message instead of failing silently if DEBUG=True. Thanks, Manuzhai
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1037 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-01 01:11:36 +00:00
Adrian Holovaty
7136eb8f3a
Fixed #507 -- Changed MySQL backend so that it uses 'LIKE BINARY' for case-sensitive comparisons -- contains, startswith and endswith. Thanks, Simon
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1036 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-01 01:08:13 +00:00
Jacob Kaplan-Moss
7e0719efa6
Fixed #675 : PasswordFields now respect length and maxlength params
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1022 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-29 17:10:51 +00:00
Jacob Kaplan-Moss
2822f71d08
Fixed #140 : memcached backends may now use multiple servers
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1021 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-29 17:05:19 +00:00
Adrian Holovaty
b5a6ff5bdd
Fixed #488 -- removetags template filter now removes tags without a space before the final slash
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1018 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-28 03:45:51 +00:00
Adrian Holovaty
5c3d1ec163
Fixed #677 -- db.queries is now reset per request. Thanks, seancazzell
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1009 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-25 01:51:57 +00:00
Adrian Holovaty
e0d2793b7b
Fixed #687 -- Fixed bug in floatformat template filter and added unit tests. Thanks, Sune
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1007 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-25 01:44:14 +00:00
Adrian Holovaty
c604de5a5d
Added 'django-admin.py installperms' command
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1005 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-23 22:43:24 +00:00
Adrian Holovaty
f82e64c6b2
Fixed #681 -- get_in_bulk no longer assumes PK fields are called id. Also added unit tests to confirm. Thanks, Jeremy Dunck
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@991 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-22 21:18:53 +00:00
Adrian Holovaty
cc3635d62f
Fixed #663 -- app_directories template loader no longer assumes a dot in the app name. Thanks, Sune
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@985 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-20 23:16:45 +00:00
Adrian Holovaty
81cbf27a13
Fixed #668 -- Changed default site from mysite.com to example.com. Thanks, Ian
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@984 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-20 22:58:33 +00:00
Adrian Holovaty
539e53ccf1
Fixed #317 -- SlugField now accepts hyphens. Thanks, Sune
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@968 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-20 04:20:52 +00:00
Adrian Holovaty
079752fe88
Fixed #641 -- Fixed re-raise in django.core.handlers.base. Thanks, Sune
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@949 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-19 01:16:57 +00:00
Adrian Holovaty
f07e5d4f5d
Fixed #627 -- BACKWARDS-INCOMPATIBLE CHANGE. Admin is now an app, not a middleware. See BackwardsIncompatibleChanges for a full list of changes and information on how to update your code.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@948 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-19 01:09:05 +00:00
Adrian Holovaty
1f227df92b
Added DATA_TYPES_REVERSE to ado_mssql backend
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@937 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-18 14:33:32 +00:00
Adrian Holovaty
8863e5dd11
Changed get_random_function_sql for ado_mssql backend to use RAND(), which is correct. Thanks, Jakub Labath
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@936 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-18 14:02:46 +00:00
Adrian Holovaty
b890e37ada
Added get_table_list() to ado_mssql backend
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@935 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-18 13:59:58 +00:00
Adrian Holovaty
57b4f231fd
Fixed #583 -- Added app_directories template loader, which searches for templates in 'templates' directory in each INSTALLED_APPS package. It's turned off by default.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@892 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-17 02:37:50 +00:00
Adrian Holovaty
e8fda9091a
Fixed typo in filesystem template-loader error message
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@890 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-17 02:18:28 +00:00
Adrian Holovaty
dc3f6e4113
Changed internal variable names in django.core.template.loaders.eggs to be consistent with filesystem
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@889 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-17 01:53:22 +00:00
Adrian Holovaty
a2e26150b7
Fixed #616 -- Added a process_exception() hook to middleware framework. Thanks, Hugo
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@880 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-15 02:20:35 +00:00
Adrian Holovaty
24154b2166
Fixed #225 -- Added first stab at MS SQL Server support (via ADO). Thanks to gmilas@gmail.com for the patch
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@879 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-15 01:37:16 +00:00
Adrian Holovaty
8254a7a7db
Fixed #628 -- Django no longer overwrites model class docstrings if they're provided
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@878 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-15 00:54:42 +00:00
Adrian Holovaty
f575a4edaa
Fixed small namespace bug in [867]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@872 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-14 22:29:13 +00:00
Adrian Holovaty
7aefff7833
Fixed #582 -- Added support for loading templates from Python eggs, and a TEMPLATE_LOADERS setting, which defines which loaders to use. Thanks, Sune
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@870 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-14 22:22:12 +00:00
Adrian Holovaty
083b4f9001
Redid [865], which got lost in [867]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@868 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-14 20:12:16 +00:00
Adrian Holovaty
f71f854628
Fixed #626 -- Moved template modules to django.core.template package. django.core.template_loader is deprecated, in favor of django.core.template.loader.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@867 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-14 20:10:13 +00:00
Jacob Kaplan-Moss
b773bf45c3
Registered default_if_none filter from [859]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@865 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-14 18:37:16 +00:00
Adrian Holovaty
ed1c9b2046
Fixed #622 -- Added default_if_none filter. Thanks, Eric
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@859 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-14 03:48:27 +00:00
Adrian Holovaty
f2088d456c
Fixed #618 -- Added DATABASE_PORT setting. Thanks, Esaj
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@858 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-14 03:43:01 +00:00
Adrian Holovaty
5f9fe6d403
Fixed #589 -- Added FilePathField. It's available as an ORM field and as a standalone field in django.core.formfields. Thanks, jay@skabber.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@846 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-12 04:14:21 +00:00
Adrian Holovaty
29ff2bb4cb
Improved django.core.management.get_sql_delete to close database connection explicitly when it's done, to avoid locking issues
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@823 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-10 20:14:56 +00:00
Adrian Holovaty
b4e2d12b1f
Fixed #599 -- locmem cache now uses deepcopy() to prevent aliasing. Thanks, Hugo
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@821 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-10 13:56:39 +00:00
Adrian Holovaty
a933432a70
Fixed #473 -- Added a MysqlDebugWrapper to use for MySQL with DEBUG=True. It displays more informative error messages for MySQL warnings. Thanks for the patch, mlambert@gmail.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@806 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-08 21:00:25 +00:00
Adrian Holovaty
d93c68ab5f
Fixed #586 -- Fixed bug in raw_id_admin caused by [785]. Thanks for the heads-up, slashzero
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@800 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-07 23:39:06 +00:00
Adrian Holovaty
485042b74d
Fixed #595 -- Fixed error when sorting API results descending with custom 'select' parameters. Thanks for the patch, Robert Wittams
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@792 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-06 15:52:30 +00:00
Adrian Holovaty
9fe02e6b65
Made raw_id_admin work with non-integer primary keys
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@790 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-06 14:43:07 +00:00
Adrian Holovaty
cb628c0cb7
Changed django.core.management to remove a couple of hard-coded slashes from os.path.join calls. Thanks, Stuart Langridge
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@789 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-06 14:30:35 +00:00
Adrian Holovaty
ab9aacd4db
Fixed #333 and #440 -- Split DEFAULT_MIME_TYPE setting into DEFAULT_CONTENT_TYPE and DEFAULT_CHARSET. Thanks, Maniac.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@786 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-06 02:27:08 +00:00
Adrian Holovaty
8dda2aeaa3
Improved model validator to check admin.list_filter and type-check admin.list_display
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@784 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-06 01:41:54 +00:00
Jacob Kaplan-Moss
6b2226bab8
Fixed #447 - the RSS framework can now output pub dates
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@743 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-30 13:58:30 +00:00
Adrian Holovaty
998fc72c0d
Changed [735] so that database-agnostic SQL always gets executed, even if database-specific SQL doesn't exist.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@737 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 23:43:03 +00:00
Jacob Kaplan-Moss
27b1f69d79
Fixed #295 - added {{{forloop.revcounter}}} and {{{forloop.revcounter0}}} variables to for loops. Also updated the docs and added unit tests to verify correct behavior. Thanks, Clint.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@736 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 23:34:29 +00:00
Jacob Kaplan-Moss
151b44c89a
Fixed #363 - django-admin sqlall now uses database-specific initial data files if they exist.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@735 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 23:23:11 +00:00
Adrian Holovaty
277cc05462
Changed django.core.template_file to use absolute import for 'template' module
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@721 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 15:06:53 +00:00
Adrian Holovaty
38649f4c3f
Fixed #537 -- Fixed typo in [718]. Thanks, Esaj
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@719 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 14:59:49 +00:00
Jacob Kaplan-Moss
22f27949bd
Fixed #537 ; thanks, fonso
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@718 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 13:29:12 +00:00
Jacob Kaplan-Moss
152d437305
Fixed #546 - render_to_string and render_to_response may now take lists of templates and use select_template instead of get_template. Thanks, hugo
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@717 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 13:26:49 +00:00
Adrian Holovaty
8a7189f38f
Fixed #501 -- Fixed block.super in multi-level templates, and added unit tests to confirm. Thanks for the patch, django@kieranholland.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@715 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 04:22:09 +00:00
Adrian Holovaty
c1a16d54b0
Fixed #553 -- Added django.core.meta.fields.Field.get_internal_type() hook, for creating custom meta.Field subclasses. Thanks, wojtek3
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@713 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-28 23:08:47 +00:00
Jacob Kaplan-Moss
cd34c163cc
Moved JING from django.core.validators into settings where it belongs. Fixes #568 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@712 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-27 16:34:10 +00:00
Jacob Kaplan-Moss
2d1303bd68
Added EMAIL_SUBJECT_PREFIX setting so you can customize the "[Django]" prefix
...
on emails send with mail_admins/mail_managers. Refs #568 .
git-svn-id: http://code.djangoproject.com/svn/django/trunk@710 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-27 16:32:21 +00:00
Adrian Holovaty
c084005d58
Fixed #131 -- URLconfs that are 'included' now receive captured parameters from parent URLconfs. Thanks for the idea, jcernelli@gmail.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@704 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-27 04:24:19 +00:00
Adrian Holovaty
d86624877d
Fixed #213 -- Improved formfields.TimeField.html2python() so that it doesn't fail for None input
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@702 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-27 03:34:58 +00:00
Jacob Kaplan-Moss
9b72153139
Quick bug fix to [699] - fixes #515 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@701 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-26 16:30:14 +00:00
Jacob Kaplan-Moss
adce221d92
Added exception handlers to take care of the bugs with the file and db backends
...
(refs #515 ). Eugene, I'm going to leave #515 open; can you check the bug fixes
in this revision and mark the ticket as closed if you're satisfied? I don't
run Django in a threaded environment, so I'm having issues reproducing your
errors.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@699 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-26 12:38:41 +00:00
Adrian Holovaty
c44fd057fa
Subclassed models now use their own class name (or explicitly defined verbose_name) as the verbose_name, not the parent's verbose_name. See also #558 and [697].
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@698 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-26 05:12:22 +00:00
Adrian Holovaty
60bb739d9e
Fixed #558 -- Subclassed models now use their own class name (or explicitly defined module_name) as the module_name, not the parent's module_name
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@697 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-26 05:03:40 +00:00
Jacob Kaplan-Moss
871ffbe7ee
Fixed #515 (again) - renamed "key" field in SQL cache to "cache_key" because
...
MySQL reserves "key".
git-svn-id: http://code.djangoproject.com/svn/django/trunk@695 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-26 03:14:37 +00:00
Adrian Holovaty
a978dbe779
Fixed #489 -- Changed MySQL backend to use longtext for XMLField
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@694 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-26 02:36:53 +00:00
Jacob Kaplan-Moss
0fa1aa8711
Added a database-backed cache backend, along with a tool in django-admin to
...
create the necessary table structure. This closes #515 ; thanks again,
Eugene!
git-svn-id: http://code.djangoproject.com/svn/django/trunk@692 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-25 22:03:30 +00:00
Adrian Holovaty
68c0742008
Fixed #468 -- Model classes now get an accessor method to get the human-readable value for each field that has 'choices' set. Thanks, Robert
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@687 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-25 20:36:05 +00:00
Jacob Kaplan-Moss
272eab5cd8
Added "locmem" and "file" cache backends. "locmem" is a thread-safe local-memory cache, and "file" is a file-based cache.
...
This refs #515 ; much thanks to Eugene Lazutkin!
git-svn-id: http://code.djangoproject.com/svn/django/trunk@686 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-25 20:01:35 +00:00
Adrian Holovaty
26c4356e01
Improved model validator so that it checks for PIL if ImageFields are used
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@685 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-25 20:01:30 +00:00
Adrian Holovaty
c05cce5c52
Fixed #556 -- ManyToManyField join tables no longer assume the primary keys of both associated tables are integers. Also added unit tests to confirm.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@682 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-25 18:29:59 +00:00
Adrian Holovaty
109a915775
Fixed #489 -- Changed MySQL backend to use longtext instead of text for TextField
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@680 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-24 17:37:30 +00:00
Adrian Holovaty
58641f8068
Added django.core.extensions get_object_or_404 and get_list_or_404
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@673 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-23 21:40:04 +00:00
Adrian Holovaty
3d426607a8
Fixed #264 -- Added django.core.validators.isValidIPAddress4. Thanks, Hugo and Simon
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@671 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-23 02:02:15 +00:00
Adrian Holovaty
1a5ada0101
Fixed #539 -- Added support for strides to 'slice' template filter, and made the code more efficient. Thanks, Esaj
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@666 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-23 00:12:24 +00:00
Adrian Holovaty
62f036d67d
Added django.core.template_loader.render_to_string and django.core.extensions.render_to_response. django.core.extensions.load_and_render is deprecated in favor of render_to_response.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@664 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-22 14:57:05 +00:00
Adrian Holovaty
17418cd982
Added django.core.validators.isValidHTML
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@663 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-22 14:51:57 +00:00
Adrian Holovaty
a6946dac54
Fixed #533 -- Fixed bug when using custom context_instance in load_and_render(). Thanks, Brantley
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@657 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-21 21:41:37 +00:00
Adrian Holovaty
0505000533
Changed django.core.extensions.load_and_render to take context_instance instead of context_class keyword arg, so DjangoContext can be used
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@656 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-21 18:18:04 +00:00