Anton Samarchyan
c91dcd36fc
Improved test coverage for django.conf.
2017-07-26 20:00:28 -04:00
Anton Samarchyan
0eefda493b
Improved test coverage for django.contrib.sitemaps.
2017-07-26 15:01:46 -04:00
Melvyn Sopacua
5bb9b9a388
Fixed #28363 -- Allowed naming the migration generated by squashmigrations.
2017-07-26 13:47:35 -04:00
Sergey Fedoseev
5ccbcc5bf6
Fixed #28433 -- Made GEOSGeometry.__eq__() work correctly with non-canonical EWKT string.
2017-07-26 09:42:02 -04:00
Sergey Fedoseev
f3bada9889
Fixed #28436 -- Added support for distance lookups on MySQL.
2017-07-26 08:50:56 -04:00
Sergey Fedoseev
38af496b98
Fixed #28432 -- Allowed geometry expressions to be used with distance lookups.
...
Distance lookups use the Distance function for decreased code redundancy.
2017-07-25 15:49:35 -04:00
Sergey Fedoseev
d17eaa868c
Removed obsolete references to add_to_query().
...
Support for it was removed in d3f00bd570
.
2017-07-25 07:52:05 -04:00
Windson yang
f32d24652b
Fixed #28321 -- Prevented FormSet.full_clean() from adding errors from deleted forms.
2017-07-24 18:55:41 -04:00
Mariusz Felisiak
28a02259cb
Fixed DatabaseFeatures.has_case_insensitive_like on MySQL and Oracle.
...
Incorrect since its introduction in 20bab2cf9d
.
2017-07-24 21:51:29 +02:00
Rachel Tobin
f9e5f9ae9f
Fixed #28418 -- Fixed queryset crash when using a GenericRelation to a proxy model.
2017-07-21 18:21:13 -04:00
Tom Carrick
3159ad4df6
Fixed #27970 -- Allowed QuerySet.in_bulk() to fetch on fields besides primary key.
2017-07-21 08:34:35 -04:00
Simon Charette
160969d970
Refs #24887 -- Stopped mutating a test expression during as_sql().
...
Also defined an explicit output_field as it was mixing an expression with an
IntegerField() with one with a DecimalField().
2017-07-21 00:23:01 -04:00
Tim Graham
487362fa8f
Fixed #28370 -- Deprecated the context arg of Field.from_db_value() and Expression.convert_value().
...
Unused since a0d166306f
.
2017-07-20 16:30:08 -04:00
Johannes Hoppe
c19b56f633
Fixed #28377 -- Made combining form Media retain relative asset order.
...
Thanks Florian Apolloner, Mariusz Felisiak, and Tim Graham for reviews.
2017-07-20 11:06:30 -04:00
Sergey Fedoseev
3b56f2191d
Simplified handling of GIS lookup params.
2017-07-20 10:08:55 -04:00
Sergey Fedoseev
9415fcfef6
Tested the case when the lhs of a raster lookup has an index specified and the rhs doesn't.
2017-07-20 09:05:45 -04:00
Sergey Fedoseev
37fbeb99f9
Removed unused models.DecimalField._format().
...
Unused since b3b71a0922
.
2017-07-20 09:00:18 -04:00
Roman Selivanov
d4da39685b
Fixed #28414 -- Fixed ClearableFileInput rendering as a subwidget of MultiWidget.
2017-07-19 14:28:06 -04:00
Sergey Fedoseev
3f7953846e
Fixed typo in DistanceLookupBase.process_rhs() error message.
2017-07-19 13:40:56 -04:00
Sergey Fedoseev
dc738a0c76
Removed redundant lookup values in RasterFieldTest.test_all_gis_lookups_with_rasters.
...
These values produce already tested lookups and prevent another one from
being tested.
2017-07-18 15:01:09 -04:00
Sergey Fedoseev
12812f6b2d
Fixed RasterFieldTest.test_all_gis_lookups_with_rasters.
...
It was inadvertently made a no-op in
378cf689d8
.
2017-07-18 08:47:59 -04:00
Srinivas Reddy Thatiparthy
71ff9a74cb
Created a dedicated test directory for FilePathField tests.
2017-07-17 16:40:34 -04:00
Mariusz Felisiak
776cee9749
Fixed #28391 -- Fixed Cast() with CharField and max_length on MySQL.
...
Thanks Tim Graham for the review.
2017-07-17 21:12:27 +02:00
Florian Apolloner
adab280cef
Fixed #28399 -- Fixed QuerySet.count() for union(), difference(), and intersection() queries.
2017-07-15 08:20:12 -04:00
Sergey Fedoseev
504ce3914f
Fixed #28394 -- Allowed setting BaseExpression.output_field (renamed from _output_field).
2017-07-14 21:56:01 -04:00
Srinivas Reddy Thatiparthy
5debbdfcc8
Fixed #28387 -- Fixed has_changed() for disabled form fields that subclass it.
2017-07-14 13:06:51 -04:00
Sergey Fedoseev
be8d5bd703
Added test for GEOSCoordSeq.__getitem__().
2017-07-13 12:46:59 -04:00
Sergey Fedoseev
1a742ea33b
Added test for LineString.__iter__().
2017-07-12 22:13:45 +05:00
Sergey Fedoseev
83440a1258
Refs #28389 -- Added release note and test for pickling of LazyObject when wrapped object doesn't have __reduce__().
...
Forwardport of 30f334cc58
from stable/1.11.x
2017-07-12 09:30:29 -04:00
Jon Dufresne
d7881d2020
Fixed #22229 -- Added primary key validation to BaseModelFormSet._construct_form().
2017-07-11 14:33:21 -04:00
Jon Dufresne
988309a1ae
Added ModelFormSet test for validation of a nonexistent PK.
2017-07-11 14:28:56 -04:00
Adam Johnson
f816ceedf1
Made assertions in invalid_models_tests consistent.
2017-07-11 13:12:17 -04:00
Claude Paroz
169c3b3e07
Fixed #14204 -- Enforced SQLite foreign key constraints.
...
Thanks Tim Graham for contributing to the patch and
Simon Charette for advice and review.
2017-07-11 09:07:31 -04:00
Sergey Fedoseev
29769a9942
Fixed #28382 -- Prevented BaseExpression._output_field from being set if _resolve_output_field() fails.
2017-07-11 08:29:08 -04:00
Sergey Fedoseev
306b961a4d
Fixed #28383 -- Made NumPoints GIS function return None for non-LINESTRING geometries on MySQL.
2017-07-11 08:21:11 -04:00
Samir Shah
d7d0a0c8e9
Fixed rendering of form errors in tests/templates/login.html.
2017-07-11 07:53:06 -04:00
Mariusz Felisiak
ca74e56350
Fixed #28378 -- Fixed union() and difference() when combining with a queryset raising EmptyResultSet.
...
Thanks Jon Dufresne for the report. Thanks Tim Graham and Simon Charette
for the reviews.
2017-07-10 20:40:08 +02:00
Mariusz Felisiak
9bca0d0b38
Added test for intersection() when combining with a queryset raising EmptyResultSet.
2017-07-10 20:40:08 +02:00
Jaap Roes
408ed9fea4
Fixed typo in tests/i18n/tests.py comment.
2017-07-10 12:08:57 -04:00
Marten Kenbeek
ceb5f1c9bf
Refs #27804 -- Used subTest() in urlpatterns_reverse tests.
2017-07-10 09:27:50 -04:00
Tim Graham
a8c70abfdf
Added a test for QuerySet.update() with a ManyToManyField.
2017-07-08 07:40:45 -04:00
Bruno Alla
604341c85f
Fixed #28331 -- Added ContextMixin.extra_context to allowing passing context in as_view().
2017-07-06 10:34:54 -04:00
Sergey Fedoseev
6de2930078
Fixed #28360 -- Fixed test runner crash with --debug-sql on fail/error in subTest.
2017-07-05 16:56:24 -04:00
Matthew Schinckel
493f7e9e1e
Fixed #28076 -- Added support for PostgreSQL's interval format to parse_duration().
2017-07-03 19:53:19 -04:00
Matthew Schinckel
684c0a35f6
Refs #27804 -- Used subTest() in dateparse tests.
2017-07-03 17:08:58 -04:00
Jon Dufresne
a1be12fe19
Fixed #28345 -- Applied limit_choices_to during ModelForm.__init__().
...
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-30 15:57:48 -07:00
Simon Charette
5cbcb36839
Fixed #28350 -- Fixed UnboundLocalError crash in RenameField with nonexistent field.
...
Thanks Tim for the review.
2017-06-30 12:50:37 -04:00
Ran Benita
b9f7dce84b
Fixed #28010 -- Added FOR UPDATE OF support to QuerySet.select_for_update().
2017-06-29 16:00:15 -04:00
Wil Tan
b94d99af5b
Refs #28280 -- Added more tests for utils.numberformat.format().
2017-06-29 13:31:41 -04:00
Tim Graham
0b00a8988b
Fixed crash in i18n tests skip condition if gettext isn't installed.
2017-06-29 13:09:16 -04:00
Mariusz Felisiak
6e228d0b65
Fixed #28277 -- Added validation of QuerySet.annotate() and aggregate() args.
...
Thanks Tim Graham and Nick Pope for reviews.
2017-06-29 18:25:36 +02:00
Anssi Kääriäinen
f7f5edd50d
Removed obsolete Query.tables attribute.
...
Obsolete since Query.alias_map became an OrderedDict (refs #26522 ).
2017-06-29 11:09:11 -04:00
Mads Jensen
550cb3a365
Fixed #27818 -- Replaced try/except/pass with contextlib.suppress().
2017-06-28 14:07:55 -04:00
Daniel Hahler
43a4835edf
Fixed #27473 -- Added DurationField support to Extract.
2017-06-28 10:10:09 -04:00
Mariusz Felisiak
3297dede7f
Fixed #28046 -- Added the db_tablespace parameter to class-based indexes.
...
Thanks Markus Holtermann and Tim Graham for reviews.
2017-06-27 21:15:15 +02:00
michaldabski
d381914aef
Fixed #28313 -- Added model name max length check of 100 characters in contrib.contentttypes.
2017-06-26 18:12:35 -04:00
Sergey Fedoseev
44a7b98abb
Fixed #27964 -- Made MySQL backend raise exception if spatial transformation is needed for query.
2017-06-26 15:10:55 -04:00
Paulo Alvarado
c432927160
Fixed #26362 -- Fixed update of the inherited id field of an object when its parent changes.
2017-06-26 12:11:20 -04:00
Jon Dufresne
fa283067c9
Removed unnecessary empty parentheses in class definitions.
2017-06-26 10:31:32 -04:00
Mariusz Felisiak
081e787160
Refs #23919 -- Stopped inheriting from object to define new style classes.
...
Tests and docs complement to cecc079168
.
2017-06-26 10:30:31 -04:00
Josh Schneier
fba0eaa5d6
Fixed #28298 -- Prevented a primary key alteration from adding a foreign key constraint if db_constraint=False.
2017-06-22 21:31:56 -04:00
Flávio Juvenal
0af14b2eaa
Refs #16870 -- Doc'd that CSRF protection requires the Referer header.
2017-06-22 11:50:00 -04:00
Tim Graham
e1cd5a76d7
Cosmetic edits to tests/view_tests/tests/test_csrf.py.
2017-06-22 09:30:40 -04:00
Mariusz Felisiak
8cb1b1fd8e
Reorganized backends tests.
2017-06-21 12:00:47 -04:00
Mariusz Felisiak
0f91ba1adc
Fixed #28329 -- Fixed Cast() with Big/Small/Positive/PositiveSmallIntegerField on MySQL.
2017-06-21 10:16:53 -04:00
Andrew Pinkham
a96b981d84
Fixed #28127 -- Allowed UserCreationForm's password validation to check all user fields.
2017-06-21 09:22:15 -04:00
Simon Charette
b1cbbe9267
Refs #25530 -- Deleted deferred SQL references on delete operation.
2017-06-21 00:26:30 -04:00
Simon Charette
b50815ee41
Refs #25530 -- Renamed deferred SQL references on rename operation.
2017-06-21 00:26:30 -04:00
Simon Charette
3b429c9673
Refs #25530 -- Tracked references of deferred SQL statements.
2017-06-21 00:03:31 -04:00
Simon Charette
ea91ad4c13
Refs #25530 -- Changed _create_index_name to take a table as first parameter.
2017-06-20 22:59:22 -04:00
Mads Jensen
de42adf4ff
Fixed #27869 -- Added fastupdate and gin_pending_list_limit params to GinIndex.
...
Thanks Tim Graham and Markus Holtermann for review.
2017-06-20 10:54:39 -04:00
Georg Sauthoff
d0f59054d0
Fixed #28324 -- Made feedgenerators write feeds with deterministically ordered attributes.
2017-06-20 05:38:41 -04:00
Paul Tiplady
335a8d7895
Fixed #28322 -- Added dbshell support for MySQL client TLS certs.
2017-06-19 18:11:25 -04:00
Anton Samarchyan
a469e158a9
Added tests for PermissionDenied in admin's delete_selected() view.
2017-06-19 16:01:48 -04:00
Tim Graham
7d52de31af
Moved admin's action view tests to a separate file.
2017-06-19 16:00:06 -04:00
Anton Samarchyan
57f4b3ce37
Added tests for AdminSite's add/disable/get action methods.
2017-06-19 15:53:51 -04:00
Anton Samarchyan
90294cc2ae
Added a test for ModelAdmin.__str__().
2017-06-19 15:33:21 -04:00
Anton Samarchyan
0b9ccf9e60
Completed test coverage for admin's LogEntry model.
2017-06-19 14:12:38 -04:00
Marti Raudsepp
fda55c71a8
Fixed #27858 -- Prevented read-only management commands from creating the django_migrations table.
...
MigrationRecorder now assumes that if the django_migrations table
doesn't exist, then no migrations are applied.
Reverted documentation change from refs #23808 .
2017-06-19 13:04:57 -04:00
Tim Graham
d1d7348001
Refs #25809 -- Removed BrinIndex.__repr__().
...
In retrospect, implementing a __repr__() for index subclasses doesn't
seem worthwhile.
2017-06-17 18:41:53 -04:00
Tim Graham
221e6e1817
Fixed #28176 -- Restored the uncasted option value in ChoiceWidget template context.
2017-06-17 18:17:23 -04:00
Maciej Jaworski
dc63ad7ac0
Fixed #28319 -- Made TextField with choices use a Select widget.
2017-06-17 08:23:32 -04:00
Tim Graham
3b050fd0d0
Fixed #28303 -- Prevented localization of attribute values in the DTL attrs.html widget template.
2017-06-17 08:12:05 -04:00
Chandrakant Kumar
2b09e4c88e
Fixed #27787 -- Made call_command() validate the options it receives.
2017-06-16 21:28:38 -04:00
reficul31
92e286498a
Fixed #27539 -- Made TransactionTestCase._pre_setup() clear the queries_log so it's less likely to overflow.
...
TransactionTestCase.assertNumQueries() fails in an overflow situation.
2017-06-16 21:06:13 -04:00
Daniel Wiesmann
6f44f714c9
Fixed #28300 -- Allowed GDALRasters to use the vsimem filesystem.
...
Thanks Tim Graham for the review and edits.
2017-06-16 12:09:05 -04:00
Chandrakant Kumar
f6800a081a
Refs #27787 -- Corrected or removed invalid call_command() options.
2017-06-16 11:06:01 -04:00
Pavel Rybintsev
874b1f2cac
Fixed #26936 -- Fixed stale ContentType deletion in apps without models.
2017-06-16 09:22:47 -04:00
Claude Paroz
ceca221b31
Fixed #28304 -- Kept SafeData type for pgettext-translated strings
2017-06-15 21:00:50 +02:00
Claude Paroz
a6b5321ce9
Refs #24423 -- Readded inadvertently deleted i18n tests.
...
Mistake in 97c1931c4f
.
2017-06-14 21:34:33 -04:00
Lincoln Smith
15b465c584
Fixed #27998 -- Made ManyToManyField changes logged in admin's object history.
2017-06-14 13:07:06 -04:00
chillaranand
fb0f987f7d
Fixed #27914 -- Added support for nested classes in Field.deconstruct()/__repr__().
2017-06-14 10:10:17 -04:00
Adam Bogdał
bd0c9388c0
Added additional field_construction tests for related fields.
2017-06-14 08:57:43 -04:00
Adam Bogdał
cd2fe829dd
Fixed #24195 -- Deconstructed the limit_choices_to option of related fields.
...
Migrations will now be created for changes to limit_choices_to.
2017-06-14 08:57:24 -04:00
Romulo Furtado
9dd2443942
Fixed #27161 -- Fixed form validation when an ArrayField's base_field has choices.
2017-06-13 19:44:24 -04:00
John D'Ambrosio
be68c0bf63
Fixed #28071 -- Fixed {% extends %} origin history.
2017-06-13 12:50:54 -04:00
chillaranand
08bda82c23
Fixed #27830 -- Used distutils.version.LooseVersion for version parsing.
2017-06-13 10:53:39 -04:00
Mikhail Golubev
e7dc39fb65
Fixed #28229 -- Fixed the value of LoginView's "next" template variable.
2017-06-13 09:13:22 -04:00
orf
a118287bca
Fixed #28284 -- Prevented Paginator's unordered object list warning from evaluating a QuerySet.
2017-06-13 08:13:17 -04:00
Mariusz Felisiak
82175ead72
Fixed #28293 -- Fixed union(), intersection(), and difference() when combining with an EmptyQuerySet.
...
Thanks Jon Dufresne for the report and Tim Graham for the review.
2017-06-13 08:16:16 +02:00