Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/contenttypes_tests
Commit message (Collapse)AuthorAgeFilesLines
* Refs #24099 -- Removed compatibility shim for ↵Tim Graham2015-09-241-21/+0
| | | | ContentType.name field.
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-2/+8
|
* Fixed #24201 -- Added order_with_respect_to support to ↵Alex Hill2015-08-272-0/+57
| | | | GenericForeignKey.
* Fixed #25160 -- Moved unsaved model instance data loss ↵Tim Graham2015-08-101-48/+0
| | | | | | | | | check to Model.save() This mostly reverts 5643a3b51be338196d0b292d5626ad43648448d3 and 81e1a35c364e5353d2bf99368ad30a4184fbb653. Thanks Carl Meyer for review.
* Fixed #21127 -- Started deprecation toward requiring ↵Flavio Curella2015-07-282-12/+12
| | | | on_delete for ForeignKey/OneToOneField
* Fixed #24495 -- Allowed unsaved model instance ↵Karl Hobley2015-03-191-0/+27
| | | | assignment check to be bypassed.
* Converted test fixtures to setUpTestData methodsJosh Smeaton2015-03-052-71/+27
|
* Moved contrib.contenttypes tests out of contrib.Tim Graham2015-02-162-0/+331
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-3/+3
|
* Fixed #24099 -- Removed contenttype.name deprecated fieldClaude Paroz2015-01-161-3/+3
| | | | | | This finsishes the work started on #16803. Thanks Simon Charette, Tim Graham and Collin Anderson for the reviews.
* Replaced router.routers usage with ↵wrwrwr2014-12-011-9/+4
| | | | override_settings(DATABASE_ROUTERS); refs #23933.
* Fixed #23930 -- Added copies of captured_std* managers ↵wrwrwr2014-11-291-13/+7
| | | | | | from CPython's test.support. StringIO import was adapted for compatibility with Python 2.
* Fixed #23338 -- Added warning when unique=True on ForeigKeyDiego Guimarães2014-11-281-0/+2
| | | | | Thanks Jonathan Lindén for the initial patch, and Tim Graham and Gabe Jackson for the suggestions.
* Removed unnecessary absolute_imports.Tim Graham2014-08-251-1/+1
|
* Improved patching of sys.stdout in refs #23078.Tim Graham2014-07-241-10/+7
|
* Fixed #23078 -- Regression in update_contenttypes() ↵Nick Sandford2014-07-231-0/+38
| | | | | | interactivity. Thanks raymond at adaptiv.nl for the report.
* Fixed #10811 -- Made assigning unsaved objects to FK, ↵Anubhav Joshi2014-06-051-0/+21
| | | | | | | | O2O, and GFK raise ValueError. This prevents silent data loss. Thanks Aymeric Augustin for the initial patch and Loic Bistuer for the review.
* Fixed #20401 -- ContentTypeManager.get_for_model reads ↵Antonis Christofides2014-05-291-1/+38
| | | | | | from db_for_read. Thanks Simon Charette and Tim Graham for the reviews.
* Fixed #22378 -- Updated \d to [0-9]+ in urlpatterns of ↵chriscauley2014-04-171-1/+1
| | | | | | docs and tests. Thanks tomwys for the suggestion.
* Fixed #21977 -- Deprecated SimpleTestCase.urlsAnubhav Joshi2014-04-061-1/+1
|
* Fixed #22218 -- Deprecated django.conf.urls.patterns.Tim Graham2014-04-031-4/+5
| | | | Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
* Fixed #16727 -- Added protocol-relative URL support to ↵Thomas Sorrel2014-03-033-1/+46
| | | | contenttypes.views.shortcut.
* Edited model and field checks for grammar and consistency.Russell Keith-Magee2014-03-031-13/+11
|
* Edited model check messages for grammar and consistency.Russell Keith-Magee2014-03-031-6/+6
|
* Cleanup of contrib.contenttypes check messages.Russell Keith-Magee2014-03-031-59/+15
|
* Fixed #19774 -- Deprecated the contenttypes.generic module.Simon Charette2014-01-261-24/+26
| | | | | | | It contained models, forms and admin objects causing undesirable import side effects. Refs #16368. Thanks to Ramiro, Carl and Loïc for the review.
* Fixed #16905 -- Added extensible checks (nee validation) ↵Russell Keith-Magee2014-01-201-2/+301
| | | | | | | | | | | framework This is the result of Christopher Medrela's 2013 Summer of Code project. Thanks also to Preston Holmes, Tim Graham, Anssi Kääriäinen, Florian Apolloner, and Alex Gaynor for review notes along the way. Also: Fixes #8579, fixes #3055, fixes #19844.
* Fixed #21774 -- Isolate all test urls from eachother.Marc Tamlyn2014-01-141-1/+1
| | | | | | | | | | | | | This (nearly) completes the work to isolate all the test modules from each other. This is now more important as importing models from another module will case PendingDeprecationWarnings if those modules are not in INSTALLED_APPS. The only remaining obvious dependencies are: - d.c.auth depends on d.c.admin (because of the is_admin flag to some views), but this is not so important and d.c.admin is in always_installed_apps - test_client_regress depends on test_client. Eventually these should become a single module, as the split serves no useful purpose.
* Renamed AppCache to Apps.Aymeric Augustin2013-12-241-2/+2
| | | | | | Also renamed app_cache to apps and "app cache" to "app registry". Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
* Moved apps back in the toplevel django namespace.Aymeric Augustin2013-12-221-1/+1
| | | | Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
* Deborgified the app cache.Aymeric Augustin2013-12-171-2/+2
| | | | | | | | | | | | | Improved Andrew's hack to create temporary app caches to handle migrations. Now the main app cache has a "master" flag set to True (which is a non-default keyword argument, thus unlikely to be used by mistake). Other app cache instances have "master" set to False. The only sanctioned way to access the app cache is by importing django.core.apps.app_cache. If you were instanciating an app cache and relying on the Borg pattern, you'll have to refactor your code.
* Moved the new app cache inside core.Aymeric Augustin2013-12-171-1/+1
|
* Moved django.db.models.loading to django.apps.cache.Aymeric Augustin2013-12-171-1/+1
| | | | This commit doesn't contain any code changes; it's purely a refactoring.
* Added more tests for ContentTypeManager.get_for_model.Antonis Christofides2013-11-241-0/+21
|
* PEP8 cleanupJason Myers2013-11-032-0/+3
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Removed most of absolute_import importsClaude Paroz2013-07-293-3/+3
| | | | | Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
* Deprecated django.views.defaults.shortcut.Aymeric Augustin2013-03-145-0/+125