summaryrefslogtreecommitdiff
path: root/tests/testapp/models/basic.py
AgeCommit message (Collapse)Author
2006-05-02MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly ↵Adrian Holovaty
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-04-12Fixed #1626 -- Fixed a bunch of typos in comments and docs. Thanks, DexterAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2687 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-25Changed get_object() not to use 'ordering' parameter from the model. Thanks, ↵Adrian Holovaty
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
2005-12-05Added two more unit tests for #982 (which still pass under Python 2.4). Refs ↵Adrian Holovaty
#982 git-svn-id: http://code.djangoproject.com/svn/django/trunk@1546 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-05Added unit tests for #982, but they're passing for me on Python 2.4. Maybe ↵Adrian Holovaty
the problem is Python 2.3? Refs #982 git-svn-id: http://code.djangoproject.com/svn/django/trunk@1545 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-01Fixed bug in basic.py model unit tests caused by [1511] -- the special-case ↵Adrian Holovaty
MySQL thing needs to be at the end of the tests git-svn-id: http://code.djangoproject.com/svn/django/trunk@1514 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-01Fixed #757: manually set AutoField values are now respected; also added unit ↵Jacob Kaplan-Moss
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-11-01Added model unit tests for year, month and day lookup. Refs #659Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1033 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-25Fixed #122 -- BIG, BACKWARDS-INCOMPATIBLE CHANGE. Changed model syntax to ↵Adrian Holovaty
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-15Added unit test that tests #323 -- currently fails for MySQL and passes for ↵Adrian Holovaty
PostgreSQL git-svn-id: http://code.djangoproject.com/svn/django/trunk@506 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-11Changed timestamp and time typecasting to preserve microseconds. Added unit ↵Adrian Holovaty
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-01Fixed #239 and #107 -- Changed model init() to use Field.get_default() if ↵Adrian Holovaty
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-07-29Added equality test to 'basic' model unit testAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@343 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-29Added first stab at model and DB-API unit testsAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@336 bcc190cf-cafb-0310-a4f2-bffc1f526a37