Commit Graph

6738 Commits

Author SHA1 Message Date
Jacob Kaplan-Moss 2e83364965 Calendar next/prev popups now work in Safari (fixed #2)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@385 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-02 17:45:53 +00:00
Adrian Holovaty d9401b78f1 Added first stab at 'django-admin.py inspectdb', which takes a database name and introspects the tables, outputting a Django model. Works in PostgreSQL and MySQL. It's missing some niceties at the moment, such as detection of primary-keys and relationships, but it works. Refs #90.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@384 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-02 17:08:24 +00:00
Jacob Kaplan-Moss 1510ca1a80 Fixed #227 -- the sqlite backend now correctly typecasts unicode objects to bytestrings (thanks hugo)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@383 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 21:49:57 +00:00
Adrian Holovaty e73c734336 Added 'Can I use Django with a pre-existing database?' to the FAQ
git-svn-id: http://code.djangoproject.com/svn/django/trunk@382 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 21:40:13 +00:00
Adrian Holovaty 6950f4f8dd Fixed small typo in docs/overview.txt -- thanks, Trent
git-svn-id: http://code.djangoproject.com/svn/django/trunk@381 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 21:37:16 +00:00
Adrian Holovaty 6656806f42 Fixed duplicate code bug in docs/overview.txt -- thanks, James Kew
git-svn-id: http://code.djangoproject.com/svn/django/trunk@380 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 21:35:55 +00:00
Jacob Kaplan-Moss a9331211c8 Modified custom_methods test to use date() instead of datetime()
git-svn-id: http://code.djangoproject.com/svn/django/trunk@379 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 21:32:45 +00:00
Adrian Holovaty e0c3dd3318 Refactored meta.py -- created a django.core.meta package, with init.py and fields.py
git-svn-id: http://code.djangoproject.com/svn/django/trunk@378 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 21:29:52 +00:00
Adrian Holovaty 006e9e789b Fixed #180 -- Removed 'enctype' from FREE_COMMENT_FORM template in contrib.comments.templatetags
git-svn-id: http://code.djangoproject.com/svn/django/trunk@377 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 20:07:31 +00:00
Adrian Holovaty 77faac0cb7 Changed SEND_BROKEN_LINK_EMAILS from True to False in global_settings -- it was causing too much confusion with improperly configured/missing mail servers
git-svn-id: http://code.djangoproject.com/svn/django/trunk@376 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 20:01:18 +00:00
Jacob Kaplan-Moss c73f4cd486 Removed tests/builddocs in favor of integrating it into the documentation builder for the site in general
git-svn-id: http://code.djangoproject.com/svn/django/trunk@371 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 19:42:36 +00:00
Jacob Kaplan-Moss 440a2a97e9 Added framework for writing non-model-based tests, and added tests for cache and templates
from the old django/tests location (which has been removed).


git-svn-id: http://code.djangoproject.com/svn/django/trunk@367 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 19:09:07 +00:00
Adrian Holovaty 8483f0aa04 Additional clarification to [365]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@366 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 19:03:33 +00:00
Adrian Holovaty d62f31228b Clarified Tutorial 3 to explain settings have changed -- thanks, Robin Munn
git-svn-id: http://code.djangoproject.com/svn/django/trunk@365 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 19:02:55 +00:00
Adrian Holovaty 7c738177dc Fixed typo in tutorial03 -- thanks, Robin Munn
git-svn-id: http://code.djangoproject.com/svn/django/trunk@364 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 18:59:35 +00:00
Adrian Holovaty a4438d74f6 Changed custom_methods model test/doc to add explanation of what Article(*row) means, for Python beginners
git-svn-id: http://code.djangoproject.com/svn/django/trunk@363 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 18:57:37 +00:00
Adrian Holovaty b307fb09bb Fixed #239 and #107 -- Changed model init() to use Field.get_default() if the value wasn't explicitly passed as a keyword argument. That means setting 'id=None' is no longer necessary, and you can leave off fields if you want them to have default values set.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@360 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 16:26:39 +00:00
Adrian Holovaty 1a8fc57bf6 Fixed #214 -- Added get_values() and get_values_iterator() module-level functions to DB API. Thanks, rmunn
git-svn-id: http://code.djangoproject.com/svn/django/trunk@359 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 15:32:42 +00:00
Adrian Holovaty 3aa33edeef Small formatting improvement to one_to_one model test
git-svn-id: http://code.djangoproject.com/svn/django/trunk@358 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 15:31:50 +00:00
Jacob Kaplan-Moss af95567c14 Improved error message in urlresolvers (fixes #240)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@357 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 14:41:01 +00:00
Adrian Holovaty 2f04115694 Added m2o_recursive and m2o_recursive2 model unit tests/examples
git-svn-id: http://code.djangoproject.com/svn/django/trunk@356 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-31 01:23:47 +00:00
Adrian Holovaty 04544c97b9 Added one_to_one model unit test/example
git-svn-id: http://code.djangoproject.com/svn/django/trunk@355 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-31 00:20:56 +00:00
Adrian Holovaty 8b36eb11d3 Gave comments.FreeComment a get_absolute_url() method
git-svn-id: http://code.djangoproject.com/svn/django/trunk@354 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-30 18:56:36 +00:00
Adrian Holovaty 716d00a314 Small formatting tweak to generated model examples
git-svn-id: http://code.djangoproject.com/svn/django/trunk@353 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-29 23:42:15 +00:00
Adrian Holovaty b7643d009e Added 'API reference' section to generated model examples
git-svn-id: http://code.djangoproject.com/svn/django/trunk@352 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-29 23:41:05 +00:00
Adrian Holovaty 7b6c472167 Changed tests.builddocs to handle ReST double-backquotes (albeit naively)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@351 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-29 23:15:50 +00:00
Adrian Holovaty b3e8b20b3e Changed template in tests.builddocs
git-svn-id: http://code.djangoproject.com/svn/django/trunk@350 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-29 22:51:25 +00:00
Adrian Holovaty 5002b44f28 Added tests.builddocs, which builds HTML documentation by introspecting the model unit tests
git-svn-id: http://code.djangoproject.com/svn/django/trunk@348 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-29 22:35:54 +00:00
Adrian Holovaty 47ce61533a Fixed #228 -- Better handling of timezones. Thanks, rmunn
git-svn-id: http://code.djangoproject.com/svn/django/trunk@347 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-29 21:40:09 +00:00
Adrian Holovaty 017b8753a6 Fixed #219 and #188 -- Database timestamp typecast no longer assumes '-' delineates the time zone
git-svn-id: http://code.djangoproject.com/svn/django/trunk@346 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-29 21:10:09 +00:00
Adrian Holovaty 5bfab1e1b2 Small addition to m2m_intermediary model test
git-svn-id: http://code.djangoproject.com/svn/django/trunk@345 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-29 20:43:04 +00:00
Adrian Holovaty 33d5006cc7 Added m2m_intermediary model unit test/example
git-svn-id: http://code.djangoproject.com/svn/django/trunk@344 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-29 20:30:10 +00:00
Adrian Holovaty 6451118946 Added equality test to 'basic' model unit test
git-svn-id: http://code.djangoproject.com/svn/django/trunk@343 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-29 20:29:59 +00:00
Adrian Holovaty a47794c824 Changed model test framework to use meta.get_app() instead of a manual import
git-svn-id: http://code.djangoproject.com/svn/django/trunk@342 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-29 20:25:02 +00:00
Jacob Kaplan-Moss f6e75ab3cf Added support for sqlite backend to test framework
git-svn-id: http://code.djangoproject.com/svn/django/trunk@341 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-29 19:22:50 +00:00
Adrian Holovaty 9e64035796 Changed admin views to output utf-8 charset explicitly
git-svn-id: http://code.djangoproject.com/svn/django/trunk@340 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-29 16:32:47 +00:00
Adrian Holovaty 85d2b12bdf Added two more model test modules -- get_latest and lookup
git-svn-id: http://code.djangoproject.com/svn/django/trunk@339 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-29 16:20:39 +00:00
Adrian Holovaty d4a9a4f83a Fixed #223 -- Changed breadcrumbs in admin doc templates to use relative, not absolute, URLs. Thanks, Drew Amato
git-svn-id: http://code.djangoproject.com/svn/django/trunk@337 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-29 15:25:31 +00:00
Adrian Holovaty daf8467b37 Added first stab at model and DB-API unit tests
git-svn-id: http://code.djangoproject.com/svn/django/trunk@336 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-29 15:15:40 +00:00
Adrian Holovaty cae7ebe19f Changed docs/install.txt to note SQLite support and requirement for pysqlite 2.0.3 or higher
git-svn-id: http://code.djangoproject.com/svn/django/trunk@335 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-28 18:21:46 +00:00
Adrian Holovaty cf9efea240 Whoop, left in an 'assert False' in [333]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@334 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-28 15:01:10 +00:00
Adrian Holovaty f5b605ab1b Fixed #218 -- Fixed admin change-list column sorting
git-svn-id: http://code.djangoproject.com/svn/django/trunk@333 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-28 14:59:50 +00:00
Adrian Holovaty 1d2ab36068 Fixed bug for models with a ForeignKey('self') and order_with_respect_to
git-svn-id: http://code.djangoproject.com/svn/django/trunk@332 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-27 19:20:29 +00:00
Adrian Holovaty 9b98383175 Fixed #187 -- Made admin view handle one-to-one relationships in which the parent relationship doesn't have the 'admin' parameter set. Thanks, Moof
git-svn-id: http://code.djangoproject.com/svn/django/trunk@331 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 23:24:55 +00:00
Adrian Holovaty d52db2d879 Changed django.core.management.get_sql_delete to be more robust when many-to-many tables don't exist
git-svn-id: http://code.djangoproject.com/svn/django/trunk@330 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 23:18:08 +00:00
Adrian Holovaty d8ef66b17d Fixed #186 -- Refactored meta.py to remove duplicate code between function_get_list and function_get_iterator. Thanks, rmunn@pobox.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@329 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 23:04:50 +00:00
Adrian Holovaty f188d5930d Fixed #143 -- Clarified the need for an environment variable in tutorial 1. Thanks, sdelatorre@gmail.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@328 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 22:58:39 +00:00
Adrian Holovaty 18e420da02 Added breadcrumbs to password-reset and password-change admin templates
git-svn-id: http://code.djangoproject.com/svn/django/trunk@327 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 22:54:59 +00:00
Adrian Holovaty 6a12d65b97 Changed admin logged_out template NOT to hard-code /admin/ as the 'Home'. Refs #158
git-svn-id: http://code.djangoproject.com/svn/django/trunk@326 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 22:52:18 +00:00
Adrian Holovaty fe91881e35 Fixed #159 -- Admin users no longer have to log in to go to the 'log out' page. Thanks, Manuzhai
git-svn-id: http://code.djangoproject.com/svn/django/trunk@325 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 22:48:04 +00:00