Commit Graph

758 Commits

Author SHA1 Message Date
Adrian Holovaty 5de6fe1b2d Fixed #938 -- Fixed bug in admin model docs with OneToOneField
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1473 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-27 23:43:35 +00:00
Adrian Holovaty 7548bfba64 Fixed bug in contrib/admin/templates/admin_doc/model_detail.html
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1472 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-27 23:16:26 +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 6a36699818 Fixed #917 -- Made admin change_list view overridable by custom templates
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1468 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-27 20:25:56 +00:00
Adrian Holovaty 4cdaf74cec Moved {% extends %} tag to top of template for admin/change_list.html
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1467 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-27 20:22:42 +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
Georg Bauer 7ff2c879c3 fixes #932 - updated 'cs' translation
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1464 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-27 18:17:16 +00:00
Adrian Holovaty 2e7e19e0f2 Moved parts/admin/doc.py to contrib/admin/utils.py, where it belongs. Also caught docutils ImportError in a more controlled way
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1463 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-27 17:20:43 +00:00
Adrian Holovaty f237936a87 Fixed #928 -- Fixed admin documentation breakage after [1443]. Thanks for reporting, nesh
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1462 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-27 17:14:11 +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 2564f34c2b Fixed missing {% load i18n %} in admin/templates/admin_doc/bookmarklets.html
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1460 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-27 16:10:49 +00:00
Georg Bauer 5c49a1e391 fixes #929 - updated 'sr' translation
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1459 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-27 15:43:14 +00:00
Adrian Holovaty 0cb2a00369 Added robots meta tag to views.static.serve to block robots from indexing and archiving the directory-index static view.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1452 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-27 14:07:04 +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
Georg Bauer 46c49a859a fixes #910, #918 and #922 - updated 'sk', 'ru' and 'zh_CN' translations
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1441 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-26 17:04:35 +00:00
Adrian Holovaty 8128f440ee Fixed #903 -- Added login_url argument to user_passes_test view decorator. Didn't add it to login_required decorator because that would turn login_required into a callable decorator, which would break backwards compatibility.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1440 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-26 07:20:07 +00:00
Adrian Holovaty 37a0c110e2 Fixed #913 -- Made more helpful error for list_filter error. Thanks, Tom Tobin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1438 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-26 06:42:28 +00:00
Georg Bauer 733e5265fe updated all message files for the new_admin merge
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1436 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-25 23:25:59 +00:00
Adrian Holovaty f0fceb773d Merged mo/po files from new-admin branch
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1435 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-25 21:20:38 +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
Jacob Kaplan-Moss 4fe5c9b7ee Fixed #906 - thanks, Esaj
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1432 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-25 15:00:14 +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 c60e323e5d new-admin and trunk: Normalized spacing differences in bin/validate.py between trunk and new-admin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1420 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-25 02:26:08 +00:00
Adrian Holovaty baba996254 Added translation strings to django/contrib/admin/views/decorators.py. Taken from new-admin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1418 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-25 02:18:37 +00:00
Adrian Holovaty f57e22495f Tiny formatting changes to templatetags/i18n.py
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1412 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-25 01:03:58 +00:00
Adrian Holovaty 16da4e69c4 Converted django.contrib.admin.templatetags.adminmedia to use simple_tag decorator
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1411 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-25 01:00:52 +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
Georg Bauer 84eb80bbd7 and another little fix to the email sending stuff on password_reset - using Context works much better after importing it
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1409 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-25 00:20:13 +00:00
Georg Bauer ca683d8ca5 now really fixed the source formatting. brought to you by the magics of IRC-based pair programming
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1407 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-25 00:04:06 +00:00
Georg Bauer eff2a1fde2 just another small fix to the template_debug layout
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1406 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24 23:35:28 +00:00
Georg Bauer 73766b1f88 fixed debug view for templates so it starts counting with 1
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1405 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24 23:31:33 +00:00
Georg Bauer 798e6d5663 mail sending used Template.render, but passed only a dictionary, not a Context object
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1404 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24 23:10:24 +00:00
Georg Bauer f0fbd43a57 small fix to the template_debug stuff, it was dropping last characters and didn't split the first line correctly
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1403 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24 22:57:04 +00:00
Adrian Holovaty 18c7ed74e4 Fixed #896 -- Fixed error in filesystem serve view in Windows. Thanks, Petar Marić and nesh
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1402 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24 22:41:05 +00:00
Adrian Holovaty 827ebe5368 Converted django/models/__init__.py to use unix newlines, not DOS
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1401 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24 21:26:04 +00:00
Adrian Holovaty d922825156 Fixed #892 -- TemplateDoesNotExist errors now get a 'Template-loader postmortem' section on the pretty debug page. Thanks for the idea, David Ascher
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1400 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24 21:15:51 +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
Georg Bauer c616d869ed fixes #898 - updated 'sk' translation. Additional a small fix in the 'de' translation (removed a "fuzzy").
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1398 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24 18:31:49 +00:00
Georg Bauer 834e7d3482 fixed a typo in a trans template tag. Thx David Ascher (on IRC)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1397 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24 18:30:31 +00:00
Jacob Kaplan-Moss f286461e2a Fixed small typo in User object; thanks David Ascher
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1396 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24 05:20:27 +00:00
Adrian Holovaty 28fd32318f Updated django.utils.translation due to template changes from [1379]. From new-admin.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1388 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24 03:32:26 +00:00
Georg Bauer eab4a22596 changed the linebreaks_iter function to use str.find instead of re.finditer, because the latter one has problems with Python 2.3
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1385 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24 00:06:36 +00:00
Adrian Holovaty 39eac9bdff Added Wilson's HTML tweaks to the template error screen
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1381 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-23 23:15:52 +00:00
Adrian Holovaty 21f2d842fa Added Wilson's CSS tweaks to the template error screen
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1380 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-23 23:12:24 +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 cfc5786d03 Fixed missing {% load i18n %} tag in comments FREE_COMMENT_FORM template
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1378 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-23 21:56:21 +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 fce688cc74 Fixed #886 -- timesince utility now supports microseconds. Thanks, Aaron Swartz
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1374 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-23 21:13:00 +00:00
Georg Bauer 87e0c2a712 updated all message files for translation hooks from [1368]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1371 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-23 17:31:52 +00:00
Georg Bauer 0e1ae73ad7 another update for the german translations file
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1370 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-23 17:27:47 +00:00
Georg Bauer 8dc25efea8 updated message files for new translation targets (comments) and updated 'de' translation
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1369 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-23 17:14:54 +00:00
Adrian Holovaty 6303141fbb Applied translation strings from new-admin to contrib.admin.views.doc
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1368 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-23 17:02:38 +00:00
Georg Bauer 6d6d90ce33 made the message when locale/ or conf/locale/ could not be found a bit more clear
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1366 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-23 16:14:24 +00:00
Adrian Holovaty d215cbd63a Added translation strings to django.contrib.comments. Taken from new-admin.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1364 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-23 15:42:09 +00:00
Georg Bauer 55089cc02d updated 'sk' translations. Fixes #881
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1360 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-22 22:53:02 +00:00
Georg Bauer cf84ba3b81 added translation hooks to timesince and updated message files to reflect them (and updated the 'de' translation). Additionally some smallish code changes to timesince (that weird zip thingy was just scary - and there is no need to .floor an integer division)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1359 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-22 21:45:54 +00:00
Georg Bauer edad9cd687 preliminary fix for DATE_FORMAT and friends in 'cs' translation
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1357 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-22 21:01:34 +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 ceecf0f7de Fixed #874 -- Changed debug views to use text/html mime-type instead of DEFAULT_CONTENT_TYPE. Thanks, Sune
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1351 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-22 14:22:02 +00:00
Adrian Holovaty 57981fb2fa Changed views.defaults page_not_found and server_error to pass in optional template_name override
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1350 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-22 05:47:51 +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 6c127e3883 fixes #869 - updated 'sk' translation
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1339 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-21 22:34:24 +00:00
Jacob Kaplan-Moss b4d379d5e1 Fixed #866: static.serve view no longer opens files in text mode -- thanks, Eugene
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1331 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-21 13:06:51 +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 a49fa746cd Fixed #273 -- BACKWARDS-INCOMPATIBLE CHANGE -- Changed auth.User.password field to add support for other password encryption algorithms. Renamed password_md5 to password and changed field length from 32 to 128. See http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges for upgrade information
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1327 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-21 03:33:22 +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 3895a825a9 Added SESSION_SAVE_EVERY_REQUEST setting.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1303 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-20 17:16:13 +00:00
Adrian Holovaty b5feff3963 Fixed #842 -- 500 error view no longer breaks for local variable named 'items'. Thanks, rjwittams
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1297 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-20 05:17:15 +00:00
Adrian Holovaty 09f32294e8 Fixed #845 -- flatpages middleware no longer throws 404 exception for DEBUG=True. Thanks, Hugo
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1296 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-20 04:55:57 +00:00
Georg Bauer a81d16dada fixes #837: updated 'ru' translation
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1283 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-18 20:11:50 +00:00
Jacob Kaplan-Moss 1da036040c Added feed configurations for django.contrib.comments
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1281 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-18 16:20:26 +00:00
Georg Bauer 9063955384 fixes #821 - updated slovak translation
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1278 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-17 16:00:01 +00:00
Jacob Kaplan-Moss 3bbc2bd091 Fixed #825; thanks for the suggestions, aaronsw
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1276 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-17 15:27:19 +00:00
Adrian Holovaty 33ffa72e40 Fixed #827 -- For admin list_display functions without a short_description, Django now converts underscores to spaces. Thanks, Aaron Swartz
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1275 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-17 15:26:50 +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
Jacob Kaplan-Moss bb505a87ac Fixed #823 - cleaned up invalid HTML in debug error template. Thanks, Sune
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1273 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-17 14:19:33 +00:00
Adrian Holovaty b1603563a3 Fixed #822 -- Changed 500 view to use disclosure triangles instead of up/down arrows. Thanks, aaronsw
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1272 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-17 03:10:03 +00:00
Georg Bauer 6be0210763 fixes #728, updated no translation
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1271 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-16 23:22:27 +00:00
Georg Bauer 6c83f8ed92 fixes #807, #809 and #818 - updated translations for fr, zh_CN and ru.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1270 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-16 18:28:42 +00:00
Georg Bauer eda3e2c99a fixed a bug that happened only if the very first gettext call was an ngettext
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1266 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-16 12:13:28 +00:00
Adrian Holovaty 464e84257d Changed 'django-admin.py startapp' application template to use views.py instead of views package, for simplicity. Updated tutorial to reflect the change.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1258 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-16 02: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
Georg Bauer 14695dc02a fixes #804 - updated slovak translation
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1252 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-15 20:08:46 +00:00
Georg Bauer 29be17533a added new danish translation
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1250 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-15 18:37:41 +00:00
Jacob Kaplan-Moss 400cf5658d Added django.views.generic.simple.redirect_to view for issuing simple redirects. Also updated direct_to_template to use render_to_response to be consistant with coding style, and documented the simple generic views.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1249 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-15 17:19:33 +00:00
Jacob Kaplan-Moss dcb5bc32e0 Added django.views.generic.simple.direct_to_template which renders a given template along with any other params from the URL pattern.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1247 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-15 16:55:26 +00:00
Adrian Holovaty 2c61aff523 Fixed #796 -- Gave AnonymousUser a has_module_perms method.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1243 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-15 14:43:56 +00:00
Jacob Kaplan-Moss d6aa904487 Fixed #799: any setting with "SECRET" or "PASSWORD" in the name is escaped in the debug view output (this can be expanded if there are other "naughty words" we want to strip out in the future. Thanks, Ian
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1242 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-15 14:35:24 +00:00
Georg Bauer 705a568854 added missing docstring to the blocktrans template tag
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1241 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-15 13:51:31 +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 065dd334de Added NOINDEX tag to debug 500 page (for robots)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1234 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-14 18:50:13 +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
Georg Bauer 1775ee7d08 fixes #790 and #791 - updated cs and sk translations
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1232 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-14 15:34:47 +00:00
Georg Bauer 5319f285a6 fixes bug with blocktrans and parameters not actually doing the translation (thx. nesh for the report)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1230 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-14 13:29:38 +00:00
Georg Bauer 4decd32b0e added the missing icenlandic message file (didn't svn add last time and didn't notice)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1229 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-14 13:28:42 +00:00
Adrian Holovaty 74865663bb Fixed #787 -- High-level syndication framework now picks up author details. Also updated documentation. Thanks, mattycakes
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1228 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-14 05:15:40 +00:00
Adrian Holovaty 7626cb0581 Improved Atom feed-generating framework to output <link rel='self'>. Added a feed_url hook to feedgenerator for this purpose, and changed the syndication Feed and views to use it. Also updated docs.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1227 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-14 04:59:20 +00:00
Adrian Holovaty 7b315b47aa Fixed #784 -- Atom feeds now use RFC3339 datetime format
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1226 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-14 04:28:31 +00:00
Adrian Holovaty 33b7ef290e Fixed #786 -- Atom feeds now put links in a href element. Thanks, mattycakes
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1225 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-14 04:16:09 +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 6e40d8c29f Fixed #783 -- Added AnonymousUser.id = None. Thanks, EABinGA
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1221 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-13 23:33:05 +00:00
Georg Bauer fdf2738f0e fixes #751, added new icelandic translation (thx Dagur), updated the serbian translation and updated .po files for updated global_settings (because of the new language)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1217 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-13 19:38:31 +00:00
Georg Bauer 0bff994e25 added swedish to the global settings LANGUAGES
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1216 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-13 18:02:55 +00:00
Georg Bauer c9b3aa399c fixes #751 - new swedish translation. thx Robin.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1215 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-13 17:59:51 +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
Adrian Holovaty f7d2e9ea9f Grammar cleanups for recent documentation and docstring changes.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1209 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-13 00:19:16 +00:00
Georg Bauer f3319e45e4 fixes #109 - added translation possibilities for date and time formats (and updated translation files for the new message IDs)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1208 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-12 22:08:54 +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
Georg Bauer 5f39a6a240 fixes #750 - languages for language-selection can now be restricted by setting LANGUAGES in the projects setting file to some subset of the global_settings provided list.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1204 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-12 21:27:46 +00:00
Georg Bauer 9da6eb5c26 fixed #777 and #775 - updated bn and sk translations
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1203 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-12 20:57:20 +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 1bf6dd7e0e Added mime_type attributes to feedgenerator RssFeed and Atom1Feed, and made the syndication view use that mime_type. Thanks, James
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1201 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-12 18:32:12 +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
Georg Bauer d47c0a55a2 fixed the "recent actions" list not pointing to the objects detail page - backport of rjwittams fix from new_admin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1191 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-12 01:16:14 +00:00
Adrian Holovaty da33b656ce Added README.TXT to contrib.redirects and contrib.flatpages
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1189 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-12 00:09:20 +00:00
Georg Bauer 6004fe9573 fix a problem that masks errors in settings files for some users - in those cases you only got "INSTALLED_APPS not defined", but in reality your settings file was broken.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1185 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-11 23:34:08 +00:00
Adrian Holovaty 1873c95b31 Added INSTALLED_APPS to global_settings. It's an empty tuple by default.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1184 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-11 22:56:18 +00:00
Georg Bauer bf33198f43 updated sk translation and updated all messagefiles for new filenames/linenumbers due to flatpages/redirects reorganization
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1183 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-11 22:10:35 +00:00
Georg Bauer f1a0213302 added a little tool to fix message-ID duplicates after subversion merges (.po files sometimes merge in rather funny and interesting ways)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1179 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-11 21:35:41 +00:00
Georg Bauer e780c71127 updated french translation
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1177 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-11 20:09:38 +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 632b63ad76 Fixed #766 -- Custom methods in admin.list_display can now have an allow_tags attribute, which doesn't strip tags in the methods' output. Thanks, plisk
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1174 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-11 17:15:24 +00:00
Adrian Holovaty cb222e4d4e Changed django-admin.py to display help if invoked with no arguments. Thanks, sopel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1173 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-11 16:42:41 +00:00
Georg Bauer 1fccca25d5 fixes #765, #767 and #770 - new sk, cs and zh_CN translations. thx vlado, Radek and limodou.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1168 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-11 08:06:21 +00:00
Adrian Holovaty e0ae394e64 Small bugfix to flatpages URLconf from [1166]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1167 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-11 05:13:57 +00:00
Adrian Holovaty 1b035c35d9 BACKWARDS-INCOMPATIBLE CHANGE -- Moved flatpages and redirects to standalone apps in django.contrib that are NOT installed by default. See http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges for full migration information.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1166 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-11 04:45:05 +00:00