summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2014-03-30Corrected many style guide violations that the newest version of flake8 catchesAlex Gaynor
2014-03-30Ensure that a file is closed in the testsAlex Gaynor
2014-03-30Fixed #22338 -- Fixed a test dependent on dictionary key iteration order.Tim Graham
2014-03-30Fixed mistake in tests from commit 2039908. Refs #19816.Loic Bistuer
2014-03-30Fixed #19816 -- Pre-evaluate querysets used in direct relation assignments.Loic Bistuer
Since assignments on M2M or reverse FK descriptors is composed of a `clear()`, followed by an `add()`, `clear()` could potentially affect the value of the assigned queryset before the `add()` step; pre-evaluating it solves the problem. This patch fixes the issue for ForeignRelatedObjectsDescriptor, ManyRelatedObjectsDescriptor, and ReverseGenericRelatedObjectsDescriptor. It completes 6cb6e1 which addressed ReverseManyRelatedObjectsDescriptor.
2014-03-30Fixed transaction handling for a number of operations on related objects.Loic Bistuer
Thanks Anssi and Aymeric for the reviews. Refs #21174.
2014-03-30Cleaned up tests for multiple databases.Loic Bistuer
2014-03-28Fixed #22306 -- Deprecated future versions of cycle and firstof template tags.Maxime Turcotte
2014-03-27Skipped JavascriptI18nTests if Firefox isn't properly configured.Tim Graham
Code borrowed from django.contrib.admin.tests. Without this, the class can throw an exception with something like "The browser appears to have exited before we could connect. The output was: Error: no display specified"
2014-03-27Fixed a deprecation warning on Python 3.Tim Graham
2014-03-27Skipped a test that errors rather than marked it as an expectedFailure.Tim Graham
The test throws an error which Python 3.4 doesn't seem to catch as an expectedFailure. refs 7476d96f83a004d674244aeb7a66289035427396
2014-03-26Forgotten slash removal in d320863878Claude Paroz
2014-03-26Fixed #22114 -- Stopped adding trailing slashes in URLField.to_pythonClaude Paroz
Thanks coredumperror at gmail.com for the report and Tim Graham for the review.
2014-03-25Fixed #22331 -- Made MigrationAutodetector ignore unmanaged models.Tim Graham
This commit reverts 69d4b1c and tackle the issue from a different angle. Models remain present in the project state, but are now ignored by the autodetector.
2014-03-25Fixed #12030 -- Validate integer field range at the model level.Simon Charette
Thanks to @timgraham for the review.
2014-03-25Fixed #22331 -- Fixed migrations ProjectState to ignore unmanaged models.Loic Bistuer
2014-03-25Fixed #22315 -- str/bytes mismatch in staticfilesDavid Evans
Previously, `ManifestFilesMixin.read_manifest` failed in Python 3 because `json.loads` accepts `str` not `bytes`.
2014-03-25Fixed #22087 -- Made AdminReadonlyField respect ModelForm Meta overrides.Ben Davis
2014-03-25Fixed #22300 -- Fixed crash in migrations when changing non-relational field ↵Stephen Burrows
to relational.
2014-03-25Merge pull request #2465 from coder9042/ticket_22258Marc Tamlyn
Fixed #22257 -- Added file output option to dumpdata command.
2014-03-25Fixed #22257 -- Added file output option to dumpdata command.Anubhav Joshi
2014-03-24Fixed #22293 -- Avoided renaming many-to-many tables to themselves.Daniel Hahler
Fixed this for both implementations of _alter_many_to_many, instead of in `alter_db_table` itself (more implementations).
2014-03-24Fixed #17922 -- Added required_css_class to form label.Anubhav Joshi
Thanks hanson2010 for the suggestion.
2014-03-24Fixed #22318 -- Added Form.has_error() to easily check if a given error has ↵Loic Bistuer
happened.
2014-03-23Fixed #22291 -- Avoided shadowing deadlock exceptions on MySQL.Aymeric Augustin
Thanks err for the report.
2014-03-22Fixed #22308 -- Regression from 0f956085.Aymeric Augustin
Rewrote the test for #9479 according to the original ticket.
2014-03-22Advanced deprecation warnings for 1.8.Aymeric Augustin
2014-03-22Made m2m fields form help_text munging specific to admin widgets.Ramiro Morales
Refs #9321 and follow-up to e80de93af6a0a21a9063a55c4d6d20e3927243e9.
2014-03-22Fixed #20684 -- Added support for HTML5 boolean attributes to form widgets.Loic Bistuer
2014-03-22Fixed #22241 -- Selectively added line breaks in admin read-only fieldsClaude Paroz
When content is supposed to contain HTML, we do not try to add line breaks in read-only contents. Thanks Alexander Todorov for the report.
2014-03-22Fixed #22256 -- Replaced bad fallback for missing PATHPatrick Michaud
Thanks Baptiste Mispelon for the review.
2014-03-22Fixed #22294 -- Prevented converting length filter output to stringClaude Paroz
Thanks Steve Pike for the report.
2014-03-22Tweaked strip_tags tests to pass on Python 3.3Claude Paroz
2014-03-22Made ModelForms raise ImproperlyConfigured if the list of fields is not ↵Tim Graham
specified. Also applies to modelform(set)_factory and generic model views. refs #19733.
2014-03-22Avoided transactional DDL on castrated databases.Aymeric Augustin
Fixed a test failure that appeared after 753a22a6, although the bug existed before that commit. Refs #22308.
2014-03-22Improved strip_tags and clarified documentationClaude Paroz
The fact that strip_tags cannot guarantee to really strip all non-safe HTML content was not clear enough. Also see: https://www.djangoproject.com/weblog/2014/mar/22/strip-tags-advisory/
2014-03-21Removed hard-coded help_text for ManyToManyFields that use a SelectMultiple ↵Tim Graham
widget Per deprecation timeline; refs #9321.
2014-03-21Fixed #22307 -- Fixed SpooledTemporaryFile bug in File class.Hans Lawrenz
Added condition to prevent checking the existence of a file name of a file like object when the name attribute is None. This is necessary because a SpooledTemporaryFile won't exist on the file system or have a name until it has reached its max_size. Also added tests.
2014-03-21Fixed typo in comments.Aymeric Augustin
2014-03-21The cycle and firstof tags no longer raise warnings.Aymeric Augustin
Refs #17906.
2014-03-21Removed useless warning silencing.Aymeric Augustin
If memory serves, the corresponding warning disappeared in Django 1.7.
2014-03-21Fixed transaction handling in two management commands.Aymeric Augustin
Previously, when createcachetable and flush operated on non-default databases, they weren't atomic.
2014-03-21Removed legacy transaction management per the deprecation timeline.Aymeric Augustin
2014-03-21Removed django.test.simple and django.test._doctest per deprecation timeline.Tim Graham
refs #17365, #17366, #18727.
2014-03-21Switched {% cycle %} and {% firstof %} tags to auto-escape their variables ↵Tim Graham
per deprecation timeline. refs #17906.
2014-03-21Removed PIL compatability layer per deprecation timeline.Tim Graham
refs #19934.
2014-03-21Removed settings.CACHE_MIDDLEWARE_ANONYMOUS_ONLY per deprecation timeline.Tim Graham
refs #15201.
2014-03-21Removed fix_ampersands template filter per deprecation timeline.Tim Graham
Also removed related utility functions: * django.utils.html.fix_ampersands * django.utils.html.clean_html
2014-03-21Removed settings.SEND_BROKEN_LINK_EMAILS per deprecation timeline.Tim Graham
2014-03-21Removed contrib.comments per deprecation timeline.Tim Graham