summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2017-07-25Fixed #28432 -- Allowed geometry expressions to be used with distance lookups.Sergey Fedoseev
Distance lookups use the Distance function for decreased code redundancy.
2017-07-25Removed obsolete references to add_to_query().Sergey Fedoseev
Support for it was removed in d3f00bd5706b35961390d3814dd7e322ead3a9a3.
2017-07-24Fixed #28321 -- Prevented FormSet.full_clean() from adding errors from ↵Windson yang
deleted forms.
2017-07-24Fixed DatabaseFeatures.has_case_insensitive_like on MySQL and Oracle.Mariusz Felisiak
Incorrect since its introduction in 20bab2cf9d02a5c6477d8aac066a635986e0d3f3.
2017-07-21Fixed #28418 -- Fixed queryset crash when using a GenericRelation to a proxy ↵Rachel Tobin
model.
2017-07-21Fixed #27970 -- Allowed QuerySet.in_bulk() to fetch on fields besides ↵Tom Carrick
primary key.
2017-07-21Refs #24887 -- Stopped mutating a test expression during as_sql().Simon Charette
Also defined an explicit output_field as it was mixing an expression with an IntegerField() with one with a DecimalField().
2017-07-20Fixed #28370 -- Deprecated the context arg of Field.from_db_value() and ↵Tim Graham
Expression.convert_value(). Unused since a0d166306fbdc41f49e6fadf4ec84b17eb147daa.
2017-07-20Fixed #28377 -- Made combining form Media retain relative asset order.Johannes Hoppe
Thanks Florian Apolloner, Mariusz Felisiak, and Tim Graham for reviews.
2017-07-20Simplified handling of GIS lookup params.Sergey Fedoseev
2017-07-20Tested the case when the lhs of a raster lookup has an index specified and ↵Sergey Fedoseev
the rhs doesn't.
2017-07-20Removed unused models.DecimalField._format().Sergey Fedoseev
Unused since b3b71a0922334c70bbc646a4873010f808196671.
2017-07-19Fixed #28414 -- Fixed ClearableFileInput rendering as a subwidget of ↵Roman Selivanov
MultiWidget.
2017-07-19Fixed typo in DistanceLookupBase.process_rhs() error message.Sergey Fedoseev
2017-07-18Removed redundant lookup values in ↵Sergey Fedoseev
RasterFieldTest.test_all_gis_lookups_with_rasters. These values produce already tested lookups and prevent another one from being tested.
2017-07-18Fixed RasterFieldTest.test_all_gis_lookups_with_rasters.Sergey Fedoseev
It was inadvertently made a no-op in 378cf689d8772d917f642a80967ab8a2332eb41c.
2017-07-17Created a dedicated test directory for FilePathField tests.Srinivas Reddy Thatiparthy
2017-07-17Fixed #28391 -- Fixed Cast() with CharField and max_length on MySQL.Mariusz Felisiak
Thanks Tim Graham for the review.
2017-07-15Fixed #28399 -- Fixed QuerySet.count() for union(), difference(), and ↵Florian Apolloner
intersection() queries.
2017-07-14Fixed #28394 -- Allowed setting BaseExpression.output_field (renamed from ↵Sergey Fedoseev
_output_field).
2017-07-14Fixed #28387 -- Fixed has_changed() for disabled form fields that subclass it.Srinivas Reddy Thatiparthy
2017-07-13Added test for GEOSCoordSeq.__getitem__().Sergey Fedoseev
2017-07-12Added test for LineString.__iter__().Sergey Fedoseev
2017-07-12Refs #28389 -- Added release note and test for pickling of LazyObject when ↵Sergey Fedoseev
wrapped object doesn't have __reduce__(). Forwardport of 30f334cc58e939c7d9bd8455c80bd066fbde9f2b from stable/1.11.x
2017-07-11Fixed #22229 -- Added primary key validation to ↵Jon Dufresne
BaseModelFormSet._construct_form().
2017-07-11Added ModelFormSet test for validation of a nonexistent PK.Jon Dufresne
2017-07-11Made assertions in invalid_models_tests consistent.Adam Johnson
2017-07-11Fixed #14204 -- Enforced SQLite foreign key constraints.Claude Paroz
Thanks Tim Graham for contributing to the patch and Simon Charette for advice and review.
2017-07-11Fixed #28382 -- Prevented BaseExpression._output_field from being set if ↵Sergey Fedoseev
_resolve_output_field() fails.
2017-07-11Fixed #28383 -- Made NumPoints GIS function return None for non-LINESTRING ↵Sergey Fedoseev
geometries on MySQL.
2017-07-11Fixed rendering of form errors in tests/templates/login.html.Samir Shah
2017-07-10Fixed #28378 -- Fixed union() and difference() when combining with a ↵Mariusz Felisiak
queryset raising EmptyResultSet. Thanks Jon Dufresne for the report. Thanks Tim Graham and Simon Charette for the reviews.
2017-07-10Added test for intersection() when combining with a queryset raising ↵Mariusz Felisiak
EmptyResultSet.
2017-07-10Fixed typo in tests/i18n/tests.py comment.Jaap Roes
2017-07-10Refs #27804 -- Used subTest() in urlpatterns_reverse tests.Marten Kenbeek
2017-07-08Added a test for QuerySet.update() with a ManyToManyField.Tim Graham
2017-07-06Fixed #28331 -- Added ContextMixin.extra_context to allowing passing context ↵Bruno Alla
in as_view().
2017-07-05Fixed #28360 -- Fixed test runner crash with --debug-sql on fail/error in ↵Sergey Fedoseev
subTest.
2017-07-03Fixed #28076 -- Added support for PostgreSQL's interval format to ↵Matthew Schinckel
parse_duration().
2017-07-03Refs #27804 -- Used subTest() in dateparse tests.Matthew Schinckel
2017-06-30Fixed #28345 -- Applied limit_choices_to during ModelForm.__init__().Jon Dufresne
field_for_model() now has an additional keyword argument, apply_limit_choices_to, allowing it to continue to be used to create form fields dynamically after ModelForm.__init__() is called. Thanks Tim Graham for the review.
2017-06-30Fixed #28350 -- Fixed UnboundLocalError crash in RenameField with ↵Simon Charette
nonexistent field. Thanks Tim for the review.
2017-06-29Fixed #28010 -- Added FOR UPDATE OF support to QuerySet.select_for_update().Ran Benita
2017-06-29Refs #28280 -- Added more tests for utils.numberformat.format().Wil Tan
2017-06-29Fixed crash in i18n tests skip condition if gettext isn't installed.Tim Graham
2017-06-29Fixed #28277 -- Added validation of QuerySet.annotate() and aggregate() args.Mariusz Felisiak
Thanks Tim Graham and Nick Pope for reviews.
2017-06-29Removed obsolete Query.tables attribute.Anssi Kääriäinen
Obsolete since Query.alias_map became an OrderedDict (refs #26522).
2017-06-28Fixed #27818 -- Replaced try/except/pass with contextlib.suppress().Mads Jensen
2017-06-28Fixed #27473 -- Added DurationField support to Extract.Daniel Hahler
2017-06-27Fixed #28046 -- Added the db_tablespace parameter to class-based indexes.Mariusz Felisiak
Thanks Markus Holtermann and Tim Graham for reviews.