summaryrefslogtreecommitdiff
path: root/tests/modeltests/many_to_one_null
Commit message (Collapse)AuthorAgeFilesLines
* [py3] Refactored __unicode__ to __str__.Aymeric Augustin2012-08-121-2/+5
| | | | | | | | | * Renamed the __unicode__ methods * Applied the python_2_unicode_compatible decorator * Removed the StrAndUnicode mix-in that is superseded by python_2_unicode_compatible * Kept the __unicode__ methods in classes that specifically test it under Python 2
* [py3] Added Python 3 compatibility for xrange.Aymeric Augustin2012-07-221-2/+2
|
* Removed with_statement imports, useless in Python >= 2.6. Refs #17965. ↵Claude Paroz2012-03-301-1/+1
| | | | | | Thanks jonash for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17828 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Convert all modeltests to use absolute imports, rather than relative ones.Alex Gaynor2011-10-132-2/+4
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@16975 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Name this test method correctly. Refs [16334].Alex Gaynor2011-06-071-1/+1
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@16336 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Made clear() on a reverse foreign key significantly more efficient. Thanks ↵Alex Gaynor2011-06-071-1/+11
| | | | | | to Andrew Godwin for the review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16335 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Tweak to many_to_one_null doctest to avoid primary key assumptions (causing ↵Russell Keith-Magee2010-10-121-1/+1
| | | | | | breakage on PostgreSQL). git-svn-id: http://code.djangoproject.com/svn/django/trunk@14168 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Migrated many_to_one_null doctests. Thanks to George Sakkis for the patch.Russell Keith-Magee2010-10-122-105/+84
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@14166 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Merged the queryset-refactor branch into trunk.Malcolm Tredinnick2008-04-271-0/+5
| | | | | | | | | | This is a big internal change, but mostly backwards compatible with existing code. Also adds a couple of new features. Fixed #245, #1050, #1656, #1801, #2076, #2091, #2150, #2253, #2306, #2400, #2430, #2482, #2496, #2676, #2737, #2874, #2902, #2939, #3037, #3141, #3288, #3440, #3592, #3739, #4088, #4260, #4289, #4306, #4358, #4464, #4510, #4858, #5012, #5020, #5261, #5295, #5321, #5324, #5325, #5555, #5707, #5796, #5817, #5987, #6018, #6074, #6088, #6154, #6177, #6180, #6203, #6658 git-svn-id: http://code.djangoproject.com/svn/django/trunk@7477 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #2101 -- Renamed `maxlength` argument to `max_length` for oldforms ↵Gary Wilson Jr2007-08-051-2/+2
| | | | | | `FormField`s and db model `Field`s. This is fully backwards compatible at the moment since the legacy `maxlength` argument is still supported. Using `maxlength` will, however, issue a `PendingDeprecationWarning` when used. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5803 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Merged Unicode branch into trunk (r4952:5608). This should be fullyMalcolm Tredinnick2007-07-041-2/+2
| | | | | | | | | backwards compatible for all practical purposes. Fixed #2391, #2489, #2996, #3322, #3344, #3370, #3406, #3432, #3454, #3492, #3582, #3690, #3878, #3891, #3937, #4039, #4141, #4227, #4286, #4291, #4300, #4452, #4702 git-svn-id: http://code.djangoproject.com/svn/django/trunk@5609 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Refs #2333 - Modified runtests script to use new testing framework. Migrated ↵Russell Keith-Magee2006-08-271-2/+2
| | | | | | existing tests to use Django testing framework. All the 'othertests' have been migrated into 'regressiontests', and converted into doctests/unittests, as appropriate. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3661 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Changed all model unit tests to use __str__() instead of __repr__(). Also ↵Adrian Holovaty2006-06-041-18/+18
| | | | | | slightly changed related-object DoesNotExist exception message to use repr instead of str git-svn-id: http://code.djangoproject.com/svn/django/trunk@3075 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Updated tests in line with changed exception messages, fixing 2 failures.Luke Plant2006-05-111-1/+1
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@2898 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly ↵Adrian Holovaty2006-05-022-0/+124
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