Commit Graph

33 Commits

Author SHA1 Message Date
Adrian Holovaty fa8662a13f Added unit test to confirm #558
git-svn-id: http://code.djangoproject.com/svn/django/trunk@696 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-26 05:00:29 +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 473306a658 Added unit test to one_to_one model that confirms #527
git-svn-id: http://code.djangoproject.com/svn/django/trunk@648 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-20 01:12:24 +00:00
Adrian Holovaty 95e8688d7f Added unit test that confirms #404
git-svn-id: http://code.djangoproject.com/svn/django/trunk@614 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-02 20:37:24 +00:00
Adrian Holovaty 75b5372a8f Tiny change to docstring in many_to_one_null model unit test
git-svn-id: http://code.djangoproject.com/svn/django/trunk@558 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-26 05:39:23 +00:00
Adrian Holovaty 286698e8e5 Removed 'this isn't yet supported' message from custom_pk unit test docstring -- it IS supported
git-svn-id: http://code.djangoproject.com/svn/django/trunk@557 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-26 05:37:26 +00:00
Adrian Holovaty 25264c8604 Fixed #122 -- BIG, BACKWARDS-INCOMPATIBLE CHANGE. Changed model syntax to use fieldname=FieldClass() syntax. See ModelSyntaxChangeInstructions for important information on how to change your models
git-svn-id: http://code.djangoproject.com/svn/django/trunk@549 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-25 22:51:30 +00:00
Adrian Holovaty 9180112f02 Added 'limit' and 'offset' unit tests, one of which fails in MySQL 3 (refs #350)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@540 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-19 21:35:02 +00:00
Adrian Holovaty b5ed20434e Added unit test that tests #323 -- currently fails for MySQL and passes for PostgreSQL
git-svn-id: http://code.djangoproject.com/svn/django/trunk@506 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-15 15:43:59 +00:00
Adrian Holovaty 8d8da826db Changed timestamp and time typecasting to preserve microseconds. Added unit tests to test this behavior, and added a db_typecast unit test module. Refs #306.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@487 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-11 19:34:34 +00:00
Jacob Kaplan-Moss f65350b197 Doctest now uses the ELLIPSIS option, which allows the one_to_one test to pass under sqlite. This fixes #238.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@466 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10 18:10:38 +00:00
Adrian Holovaty 63e1f3d39c Added more tests to custom_pk unit-test model
git-svn-id: http://code.djangoproject.com/svn/django/trunk@461 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10 05:04:27 +00:00
Adrian Holovaty 0660203afe Added custom_pk unit tests, which fail because of #81
git-svn-id: http://code.djangoproject.com/svn/django/trunk@458 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10 03:52:41 +00:00
Adrian Holovaty 991832d0c4 Fixed #154 -- Fixed constraint error when deleting an object with a many-to-many field
git-svn-id: http://code.djangoproject.com/svn/django/trunk@447 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10 00:21:41 +00:00
Adrian Holovaty 270234d189 Added some extra examples to many_to_many unit test
git-svn-id: http://code.djangoproject.com/svn/django/trunk@445 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-09 22:56:43 +00:00
Adrian Holovaty 741109f440 Added some extra examples to many_to_many unit test
git-svn-id: http://code.djangoproject.com/svn/django/trunk@444 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-09 22:53:43 +00:00
Adrian Holovaty d87ca56c63 Removed period from save_delete_hooks docstring -- it doesn't fit our style
git-svn-id: http://code.djangoproject.com/svn/django/trunk@438 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-09 14:33:30 +00:00
Adrian Holovaty a90e9f43db Companion checkin to [432]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@433 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-08 18:30:07 +00:00
Adrian Holovaty b7e5121684 Fixed #280 -- Added _pre_delete() and _post_delete() hooks. Also updated the docs and added a unit testdjango/core/meta/__init__.py
git-svn-id: http://code.djangoproject.com/svn/django/trunk@432 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-08 18:29:02 +00:00
Adrian Holovaty 7dc07ed937 Fixed typo in one_to_one test docstring. Thanks, Frank
git-svn-id: http://code.djangoproject.com/svn/django/trunk@396 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-04 02:35:26 +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 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
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 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 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 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 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