summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2014-02-06Fixed #17713 -- Renamed BaseDatabaseFeatures.allows_primary_key_0 to ↵Vajrasky Kok
allows_auto_pk_0. MySQL does allow primary key with value 0. It only forbids autoincrement primary key with value 0. Thanks Claude Paroz for the report.
2014-02-06Fixed #21731 -- Made javascript_quote escapes '</'.Vajrasky Kok
2014-02-05Removed import which is now unusedAlex Gaynor
2014-02-05Revert "Fixed #20296 -- Allowed SafeData and EscapeData to be lazy"Baptiste Mispelon
This reverts commit 2ee447fb5f8974b432d3dd421af9a242215aea44. That commit introduced a regression (#21882) and didn't really do what it was supposed to: while it did delay the evaluation of lazy objects passed to mark_safe(), they weren't actually marked as such so they could end up being escaped twice. Refs #21882.
2014-02-05Fixed #21952 -- signals deadlock due to locking + weakref interactionAnssi Kääriäinen
2014-02-04Fixed #21929 - Fixed test regression on Windows.Carl Meyer
Thanks Michael Manfre for the report.
2014-02-04Removed the this_is_the_login_form hackClaude Paroz
Refs #21911. Now that we have a more traditional login form, we don't need any more a special field telling us we are dealing with the login form.
2014-02-04Fixed #21911 -- Made admin views redirect to login when neededClaude Paroz
Historically, the Django admin used to pass through the request from an unauthorized access to the login view directly. Now we are using a proper redirection, which is also preventing inadvertantly changing data when POSTing login data to an admin view when user is already authorized. Thanks Marc Tamlyn and Tim Graham for the reviews.
2014-02-04Made staff_member_required redirect to loginClaude Paroz
Refs #21911.
2014-02-04Fixed #21748 -- join promotion for negated AND conditionsAnssi Kääriäinen
Made sure Django treats case .filter(NOT (a AND b)) the same way as .filter((NOT a OR NOT b)) for join promotion.
2014-02-02Fixed typo in 3ffeb931.Aymeric Augustin
2014-02-02Make mysql's CursorWrapper a contextmanager.Michael Manfre
2014-02-02Fix regress added to migrations.test_operations.test_alter_field_pk_fkMichael Manfre
2014-02-02Ensure cursors are closed when no longer needed.Michael Manfre
This commit touchs various parts of the code base and test framework. Any found usage of opening a cursor for the sake of initializing a connection has been replaced with 'ensure_connection()'.
2014-02-02Made SQLCompiler.execute_sql(result_type) more explicit.Michael Manfre
Updated SQLUpdateCompiler.execute_sql to match the behavior described in the docstring; the 'first non-empty query' will now include all queries, not just the main and first related update. Added CURSOR and NO_RESULTS result_type constants to make the usages more self documenting and allow execute_sql to explicitly close the cursor when it is no longer needed.
2014-02-01Silenced a spurious warning.Aymeric Augustin
Thanks Timo for the report. Regression from 2f65b8e1. Refs #21794.
2014-01-31Updated some tests to use the check framework and silenced a ↵Tim Graham
PendingDeprecationWarning.
2014-01-30Made Oracle introspect FloatFields correctlyShai Berger
Broke InspectDBTestCase.test_field_types in two: - a test_number_field_types, which now passes on Oracle too - a test_field_types, for all non-numeric fields, which is still expected to fail Also made some pep8 fixes in the tests file. Refs #19884 Thanks Tim Graham for review.
2014-01-28Added tests for m2m queries with custom pk on the end modelsAnssi Kääriäinen
It seems this case was fixed somewhere between 1.5.x and 1.6.x. I added tests as I wasn't able to find any tests for these cases. Refs #21879
2014-01-28Fixed #21849 -- Included the count of silenced system checks in output.Tim Graham
2014-01-28Fixed #21853 -- Fixed Manager.__module__ to properly return ↵Loic Bistuer
'django.db.models.manager'. The combination of BaseManager.from_queryset() and RenameMethodsBase results in Manager.__module__ having the wrong value. This can be an issue when trying to pickle the Manager class.
2014-01-27Fixed #21874 -- Require Django applications to have a filesystem path.Carl Meyer
Wherever possible this filesystem path is derived automatically from the app module's ``__path__`` and ``__file__`` attributes (this avoids any backwards-compatibility problems). AppConfig allows specifying an app's filesystem location explicitly, which overrides all autodetection based on ``__path__`` and ``__file__``. This permits Django to support any type of module as an app (namespace packages, fake modules, modules loaded by other hypothetical non-filesystem module loaders), as long as the app is configured with an explicit filesystem path. Thanks Aymeric for review and discussion.
2014-01-27Removed TransRealMixin.Aymeric Augustin
Fixed #21688. Refs https://github.com/django/django/pull/1147.
2014-01-27Removed superfluous uses of TransRealMixin.Aymeric Augustin
The translation.override context manager cleans up after itself. As a consequence this mixin isn't needed any more in many cases.
2014-01-26Fixed #19774 -- Deprecated the contenttypes.generic module.Simon Charette
It contained models, forms and admin objects causing undesirable import side effects. Refs #16368. Thanks to Ramiro, Carl and Loïc for the review.
2014-01-26Fixed some missing/extraneous new line warnings.Simon Charette
2014-01-26Fixed #21702 -- get_model('app_label.ModelName').Aymeric Augustin
Also added tests for get_model.
2014-01-25Moved sys.path-extending decorator to django.test.utils and used throughout ↵Carl Meyer
test suite. Thanks Aymeric for the suggestion.
2014-01-25Fixed #17304 -- Allow single-path and configured-path namespace packages as ↵Carl Meyer
apps. Also document the conditions under which a namespace package may or may not be a Django app, and raise a clearer error message in those cases where it may not be. Thanks Aymeric for review and consultation.
2014-01-25Fixed a failing schema assertion.Simon Charette
BooleanFields are stored as TINYINT(1) on MySQL.
2014-01-25Merge pull request #2211 from carljm/t21867Jannis Leidel
Fixed #21867 -- Removed AppStaticStorage; app paths are now AppConfig's job.
2014-01-25Fixed #21829 -- Added default AppConfigs.Aymeric Augustin
Thanks Russell for the report, Marc for the initial patch, Carl for the final review, and everyone who contributed to the design discussion.
2014-01-24Fixed #21871 -- Fixed Apps.is_installed() for apps with custom label.Carl Meyer
Thanks Aymeric for design discussion.
2014-01-25Fixed #21783: More SQLite default fun with nulls.Andrew Godwin
2014-01-24Fixed #21867 -- Removed AppStaticStorage; app paths are now AppConfig's job.Carl Meyer
AppStaticStorage only provided one thing over FileSystemStorage, which was taking an app name (import path) and translating it into a filesystem path. This is now something that should be done via app_config.path instead, leaving AppStaticStorage with no reason for existence. It should be safe to remove, as it was undocumented internal API. There was some kind of feature in the AppDirectoriesFinder code related to a "prefix" attribute on the storage class used by AppDirectoriesFinder. Since this feature was undocumented, untested, and of unclear purpose, I removed it as well.
2014-01-24Fixed typo in error message.Arne Brodowski
2014-01-24Fixed #21870 -- Admin check for list_editable_itemArne Brodowski
During the admin check for list_editable _check_list_editable_item should return an empty list if all checks pass. Additionally the Testcase test_readonly_and_editable was changed to test what the name implies instead of duplicating the logic of test_readonly.
2014-01-24Fixed #21787 -- regression in MTI .exclude() queriesAnssi Kääriäinen
2014-01-22Added some missing whitespace around arithmetic operatorsAlex Gaynor
2014-01-22Fixed #21846 -- Made NestedObjects handle related_name with %(app_label)s or ↵Loic Bistuer
%(class)s.
2014-01-22Fixed #21852 -- Make migration writer serialize iteratorsMarkus Holtermann
2014-01-20Removed some stray newlines which caused flake8 issuesAlex Gaynor
2014-01-20Fix a check_framework test so it doesn't fail when TEST_RUNNER is set (e.g. ↵Carl Meyer
on CI).
2014-01-20Fixes #21833 -- Fix UserSettingsHolder.is_overridden() and add tests.Carl Meyer
2014-01-20Added ManifestStaticFilesStorage to staticfiles contrib app.Jannis Leidel
It uses a static manifest file that is created when running collectstatic in the JSON format.
2014-01-20Removed a stray new line which upset flake8Alex Gaynor
2014-01-20Added warning silencers to some noisy tests.Russell Keith-Magee
These warnings all emerged as the result of the introduction of the checks framework. Thanks to Anssi Kääriäinen for the report.
2014-01-20Fixed two test failures under OracleShai Berger
2014-01-20Fixed custom_lookups tests for OracleAnssi Kääriäinen
Refs #21821
2014-01-20Removed an inactive system check for upload_to.Russell Keith-Magee
Thanks to Simon Charette for the eagle eyes.