Tim Graham
a87d6b69a7
Tidied djang.db.utils.load_backend().
...
Removed an unneeded EnvironmentError catching and used
"raise from exc" syntax.
2017-01-24 08:33:26 -05:00
Tim Graham
435e4bf38e
Refs #23919 -- Removed __traceback__ setting needed for Python 2.
...
Partially reverted refs #25761 and refs #16245 .
2017-01-24 08:31:58 -05:00
Nick Mavrakis
e5c2e43cc8
Fixed #27743 -- Prevented admin's "+" button icon from overlapping its label.
2017-01-23 19:24:47 -05:00
Jon Dufresne
0d74c41981
Replaced dict() usage with dict literals.
...
Literals are faster and more idiomatic.
2017-01-23 19:13:49 -05:00
Claude Paroz
d2e7d15b4c
Assumed iri_to_uri always returns a string
...
Thanks Tim Graham for the review.
2017-01-23 19:59:33 +01:00
Jon Dufresne
f0573aad4b
Replaced "not var is ..." with "is not" in attrs.html.
2017-01-23 13:14:00 -05:00
Tim Graham
248d54569e
Removed MySQL decimal casting.
...
Added in Django 1.0: 92c35a0617
Unknown when it became obsolete.
2017-01-23 10:44:02 -05:00
Jon Dufresne
5fa390ee81
Fixed #27759 -- Prevented forms attrs.html template from rendering False attrs.
...
Regression in b52c73008a
.
2017-01-23 08:49:00 -05:00
Jon Dufresne
88183117c2
Fixed #27761 -- Fixed quote location in multiple_input.html forms templates.
2017-01-23 07:44:57 -05:00
Jon Dufresne
ecd5944666
Removed ChoiceWidget.render() as it duplicates parent implementation.
2017-01-23 07:33:27 -05:00
Claude Paroz
8377a98ca5
Removed obsolete force_text_recursive
2017-01-22 21:13:00 +01:00
Claude Paroz
6e55e1d88a
Refs #23919 -- Replaced six.reraise by raise
2017-01-22 20:08:04 +01:00
Tim Graham
d170c63351
Refs #23919 -- Removed misc references to Python 2.
2017-01-21 20:02:00 -05:00
Mariusz Felisiak
c22212220a
Refs #23919 -- Removed re.U and re.UNICODE (default on Python 3).
2017-01-21 14:28:16 -05:00
Tim Graham
990ce6386c
Refs #5748 -- Removed obsolete Python/Windows workarounds in floatformat filter.
2017-01-21 13:53:35 -05:00
Tim Graham
9e6e32bf5d
Refs #23919 -- Removed django.utils.decorators.available_attrs() usage.
...
It's only needed to workaround a bug on Python 2.
2017-01-21 13:20:17 -05:00
Tim Graham
1b06d5e6f6
Refs #23919 -- Removed pysqlite support (it's Python 2 only).
2017-01-20 18:21:15 -05:00
Tim Graham
7aba69145d
Refs #23919 -- Removed django.test.mock Python 2 compatibility shim.
2017-01-20 08:17:20 -05:00
Claude Paroz
042b7350a0
Refs #23919 -- Removed unneeded str() calls
2017-01-20 14:13:55 +01:00
Tim Graham
4e729feaa6
Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage.
...
These functions do nothing on Python 3.
2017-01-20 08:01:02 -05:00
Srinivas Reddy Thatiparthy
ec4c1d6717
Removed u'' prefx in django/core/signing.py comment.
2017-01-20 07:38:17 -05:00
Claude Paroz
dc8834cad4
Refs #23919 -- Removed unneeded force_str calls
2017-01-20 08:44:31 +01:00
Mariusz Felisiak
bf1c957027
Refs #23919 -- Removed Python 2 workaround for hashing Oracle params (refs #27632 ).
2017-01-19 22:20:14 -05:00
Tim Graham
fedda6d9bd
Refs #23919 -- Removed Python 2 version check in django.http.cookie.
2017-01-19 20:06:03 -05:00
Srinivas Reddy Thatiparthy
eb0b921c29
Refs #23919 -- Removed SessionBase.iterkeys(), itervalues(), iteritems().
...
These methods only work on Python 2.
2017-01-19 14:15:00 -05:00
Tim Graham
9ee47ce7b4
Refs #23919 -- Removed enum ImportError handling for Python 2.
2017-01-19 13:55:20 -05:00
Tim Graham
d29fd3f9a6
Fixed django/utils/http.py comment typo.
2017-01-19 13:21:54 -05:00
Tim Graham
9d27478958
Refs #23919 -- Removed docs references to long integers.
2017-01-19 13:19:26 -05:00
Tim Graham
9e917cc291
Fixed #23905 , refs #23919 -- Used make_msgid() from stdlib.
2017-01-19 12:58:19 -05:00
Tim Graham
d4bb37593e
Refs #23919 -- Removed obsolete compare_digest() and pbkdf2() implementations.
2017-01-19 11:55:23 -05:00
Simon Charette
9695b14982
Refs #23919 -- Removed str() conversion of type and method __name__.
2017-01-19 11:31:07 -05:00
Chillar Anand
41e0033caf
Refs #23919 -- Removed usage of django.utils.decorators.ContextDecorator.
2017-01-19 11:28:30 -05:00
Simon Charette
4c5ed3e683
Refs #23919 -- Removed __nonzero__() methods (for Python 2).
...
Thanks Tim for the review.
2017-01-19 11:26:26 -05:00
Claude Paroz
53f3d53ed4
Updated translation catalogs
...
Forward port of 518693bef5
from stable/1.11.x
2017-01-19 17:09:37 +01:00
Tim Graham
e5c67f0991
Refs #23919 -- Removed reset_warning_registry() workaround for Python < 3.4.2.
2017-01-19 10:56:00 -05:00
james mike dupont
7d20094996
Fixed spelling mistakes in code and comments.
2017-01-19 07:52:41 -05:00
Simon Charette
cecc079168
Refs #23919 -- Stopped inheriting from object to define new style classes.
2017-01-19 08:39:46 +01:00
Aymeric Augustin
a556396339
Refs #23919 -- Replaced io.open() with open().
...
io.open() is an alias for open() on Python 3.
2017-01-18 21:45:12 -05:00
Aymeric Augustin
eb422e476f
Refs #23919 -- Removed obsolete __ne__() methods.
...
__ne__() defaults to the opposite of __eq__() on Python 3
when it doesn't return NotImplemented.
2017-01-18 21:44:00 -05:00
Aymeric Augustin
3cc5f01d9b
Refs #23919 -- Stopped using django.utils.lru_cache().
2017-01-18 21:42:40 -05:00
Claude Paroz
2b281cc35e
Refs #23919 -- Removed most of remaining six usage
...
Thanks Tim Graham for the review.
2017-01-18 21:33:28 +01:00
Claude Paroz
7b2f2e74ad
Refs #23919 -- Removed six.<various>_types usage
...
Thanks Tim Graham and Simon Charette for the reviews.
2017-01-18 20:18:46 +01:00
Claude Paroz
c716fe8782
Refs #23919 -- Removed six.PY2/PY3 usage
...
Thanks Tim Graham for the review.
2017-01-18 16:21:28 +01:00
Claude Paroz
f3c43ad1fd
Refs #23919 -- Removed python_2_unicode_compatible decorator usage
2017-01-18 13:44:34 +01:00
Claude Paroz
d7b9aaa366
Refs #23919 -- Removed encoding preambles and future imports
2017-01-18 09:55:19 +01:00
Tim Graham
6192bffb13
Refs #26601 -- Removed obsolete system check for MIDDLEWARE_CLASSES setting.
2017-01-17 20:52:05 -05:00
Tim Graham
98760ab0b2
Refs #25079 -- Removed obsolete system check for TEMPLATE_* settings.
2017-01-17 20:52:05 -05:00
Tim Graham
0bf3228eec
Increased the default PBKDF2 iterations for the 1.11 release cycle.
2017-01-17 20:52:05 -05:00
Tim Graham
f847308200
Advanced deprecation warnings for Django 2.0.
2017-01-17 20:52:05 -05:00
Tim Graham
401c5b2e42
Refs #23957 -- Removed the useless SessionAuthenticationMiddleware.
2017-01-17 20:52:05 -05:00
Tim Graham
d334f46b7a
Refs #26601 -- Removed support for old-style middleware using settings.MIDDLEWARE_CLASSES.
2017-01-17 20:52:04 -05:00
Tim Graham
631f4ab061
Removed Manager.use_for_related_fields and Meta.manager_inheritance_from_future.
...
Per deprecation timeline. Refs ed0ff913c6
.
2017-01-17 20:52:04 -05:00
Tim Graham
60ca37d2e5
Refs #24046 -- Removed mark_for_escaping() per deprecation timeline.
2017-01-17 20:52:04 -05:00
Tim Graham
0dfc5479a8
Refs #26058 -- Removed deprecated FileField.get_directory_name()/get_filename().
2017-01-17 20:52:04 -05:00
Tim Graham
58d3d14aea
Refs #26533 -- Removed support for Widget._format_value() per deprecation timeline.
2017-01-17 20:52:04 -05:00
Tim Graham
9d0e8c1e7f
Refs #26320 -- Removed implicit OneToOnField parent_link per deprecation timeline.
2017-01-17 20:52:04 -05:00
Tim Graham
1691782652
Refs #26509 -- Removed contrib.gis.utils.precision_wkt() per deprecation timeline.
2017-01-17 20:52:04 -05:00
Tim Graham
2b20e4148f
Refs #19567 -- Removed deprecated javascript_catalog() and json_catalog() views.
2017-01-17 20:52:03 -05:00
Tim Graham
933dc62742
Refs #16508 -- Removed virtual aliases of "private fields".
...
Per deprecation timeline.
2017-01-17 20:52:03 -05:00
Tim Graham
eba093e8b0
Refs #25847 -- Removed support for User.is_(anonymous|authenticated) as methods.
...
Per deprecation timeline.
2017-01-17 20:52:03 -05:00
Tim Graham
b70094f040
Refs #26226 -- Removed support for related manager classes without a _apply_rel_filters() method.
...
Per deprecation timeline.
2017-01-17 20:52:03 -05:00
Tim Graham
5139832398
Refs #26285 -- Removed MySQL __search lookup per deprecation timeline.
2017-01-17 20:52:03 -05:00
Tim Graham
bfe0d54514
Refs #26230 -- Removed support for model name query lookups when using Meta.default_related_name.
...
Per deprecation timeline.
2017-01-17 20:52:03 -05:00
Tim Graham
2d7fb77987
Refs #23832 -- Removed deprecated non-timezone aware Storage API.
2017-01-17 20:52:03 -05:00
Tim Graham
740f63a3df
Refs #26263 -- Removed deprecated Context.has_key().
2017-01-17 20:52:03 -05:00
Tim Graham
bcf3532ede
Refs #26154 -- Removed deprecated CommaSeparatedIntegerField.
2017-01-17 20:52:02 -05:00
Tim Graham
bc3540ce2c
Refs #26013 -- Removed deprecated django.core.urlresolvers module.
2017-01-17 20:52:02 -05:00
Tim Graham
f65b1aee71
Refs #25838 -- Removed the deprecated shell --plain option.
2017-01-17 20:52:02 -05:00
Tim Graham
9d304b26cf
Refs #20223 -- Removed deprecated django.utils.functional.allow_lazy().
2017-01-17 20:52:02 -05:00
Tim Graham
7e63e84572
Refs #25773 -- Removed deprecated geos.MultiPolygon.cascaded_union property.
2017-01-17 20:52:02 -05:00
Tim Graham
997c9f7099
Refs #25665 -- Removed deprecated getter/setter of Point.tuple.
2017-01-17 20:52:02 -05:00
Tim Graham
19d8e64ac3
Refs #25665 -- Removed deprecated getters/setters of Point coordinate properties.
2017-01-17 20:52:02 -05:00
Tim Graham
a0149848f7
Refs #25665 -- Removed GEOSGeometry.get/set_srid() per deprecation timeline.
2017-01-17 20:52:01 -05:00
Tim Graham
ed251246cc
Refs #25550 -- Removed support for direct assignment to the reverse side of a related set.
2017-01-17 20:52:01 -05:00
Tim Graham
e0910dcc92
Refs #25604 -- Removed makemigrations --exit option per deprecation timeline.
2017-01-17 20:52:01 -05:00
Tim Graham
ff419de263
Refs #25466 -- Removed aliases for LoaderOrigin and StringOrigin.
...
Per deprecation timeline.
2017-01-17 20:52:01 -05:00
Tim Graham
75cf9b5ac0
Refs #13110 -- Removed SyndicationFeed.add_item()'s enclosure argument.
...
Per deprecation timeline.
2017-01-17 20:52:01 -05:00
Tim Graham
d67a46e104
Refs #25135 -- Removed support for the contrib.admin allow_tags attribute.
...
Per deprecation timeline.
2017-01-17 20:52:01 -05:00
Tim Graham
7510b872e7
Refs #25190 -- Removed callable_obj parameter to assertRaisesMessages().
...
Per deprecation timeline.
2017-01-17 20:52:01 -05:00
Tim Graham
9f9a3d643e
Refs #24126 -- Removed auth views' current_app parameter per deprecation timeline.
2017-01-17 20:52:00 -05:00
Tim Graham
8377abd59e
Refs #25120 -- Removed template.loaders.eggs.Loader per deprecation timeline.
2017-01-17 20:52:00 -05:00
Tim Graham
733c7c7030
Refs #24716 -- Removed Field._get_val_from_obj() per deprecation timeline.
2017-01-17 20:52:00 -05:00
Tim Graham
ad393beeb7
Refs #21927 -- Removed include()'s app_name argument per deprecation timeline.
...
Also removed support for passing a 3-tuple to include() and support for
setting an instance namespace without an application namespace.
Thanks Marten Kenbeek for completing the patch.
2017-01-17 20:52:00 -05:00
Tim Graham
c6de8cca20
Refs #24728 - Removed Atom1Feed/RssFeed mime_type attribute.
...
Per deprecation timeline.
2017-01-17 20:52:00 -05:00
Tim Graham
3cee9edd1b
Refs #24733 -- Removed support for error views without the exception parameter.
...
Per deprecation timeline.
2017-01-17 20:52:00 -05:00
Tim Graham
5d8da093a9
Refs #15053 -- Removed support for non-recursive template loading.
...
Per deprecation timeline.
2017-01-17 20:52:00 -05:00
Tim Graham
56a5760543
Refs #25184 -- Removed contrib.gis.geoip per deprecation timeline.
2017-01-17 20:52:00 -05:00
Tim Graham
a0d166306f
Removed GeoManager and GeoQuerySet per deprecation timeline.
2017-01-17 20:51:56 -05:00
Tim Graham
e90c745afd
Refs #22993 -- Removed skipIfCustomUser per deprecation timeline.
2017-01-17 14:09:29 -05:00
Tim Graham
e707e4c709
Refs #19738 -- Removed timezone conversion in SQL queries executed outside of the ORM.
...
Per deprecation timeline.
2017-01-17 14:09:29 -05:00
Tim Graham
b2ffbb00a5
Refs #24215 -- Removed add_lazy_relation() per deprecation timeline.
2017-01-17 14:09:29 -05:00
Tim Graham
ddd3268975
Refs #21127 -- Required on_delete for ForeignKey/OneToOneField.
...
Per deprecation timeline.
2017-01-17 14:09:28 -05:00
Tim Graham
625e9da9ca
Removed Field.rel and Field.remote_field.to per deprecation timeline.
2017-01-17 14:09:28 -05:00
Tim Graham
0f454f5d4d
Refs #23960 -- Removed the host parameter for SimpleTestCase.assertRedirects().
...
Per deprecation timeline.
2017-01-17 14:09:28 -05:00
Tim Graham
f032bbc8b1
Refs #18651 -- Removed assignment_tag per deprecation timeline.
2017-01-17 14:09:28 -05:00
Tim Graham
742d666da5
Refs #24219 -- Removed django.forms.extras per deprecation timeline.
2017-01-17 14:09:28 -05:00
Tim Graham
a3bd8672d8
Refs #24154 -- Removed deprecated BaseDatabaseOperations.check_aggregate_support().
2017-01-17 14:09:28 -05:00
Tim Graham
03087f80d1
Refs #24205 -- Removed Signal.disconnect()'s weak argument.
...
Per deprecation timeline.
2017-01-17 14:09:28 -05:00
Tim Graham
f32feaa901
Bumped version; master is now 2.0 pre-alpha.
2017-01-17 14:09:28 -05:00
Tim Graham
f01ad1cb6a
Refs #27683 -- Allowed setting isolation level in DATABASES ['OPTIONS'] on MySQL.
2017-01-17 11:16:15 -05:00
Markus Holtermann
46e0335583
Refs #27666 -- Added ProjectState.reload_models().
2017-01-17 08:12:53 -05:00
Markus Holtermann
45ded053b1
Fixed #27666 -- Delayed rendering of recursivly related models in migration operations.
2017-01-17 08:12:52 -05:00
Mariusz Felisiak
7d2db2a7b8
Refs #27690 -- Removed sleep before drop test db on Oracle.
2017-01-16 19:20:28 -05:00
Mads Jensen
65e321b781
Refs #25809 -- Made a few late review comments for BrinIndex.
2017-01-16 13:23:20 -05:00
Tim Graham
b5511dddd6
Moved unneeded ImproperlyConfigured inner imports.
2017-01-16 12:48:41 -05:00
Josh Smeaton
1df89a60c5
Fixed #25307 -- Fixed QuerySet.annotate() crash with conditional expressions.
...
Thanks Travis Newport for the tests and Josh Smeaton for contributing
to the patch.
2017-01-16 10:03:15 -05:00
Mads Jensen
0bc59978ab
Fixed #27736 -- Used decorators for lookup registration.
2017-01-16 09:22:26 -05:00
François Freitag
05bdf4f44d
Refs #16614 -- Called _prepare_cursor() on every created cursor.
2017-01-16 09:12:23 -05:00
Dmitry Dygalo
1f10c3994c
Removed unneeded variable in contrib/postgres/fields/jsonb.py.
2017-01-16 06:24:16 -05:00
Mads Jensen
7e299c0e03
Refs #25809 -- Prefered imports from django.db.models.
2017-01-15 22:02:39 +01:00
Mads Jensen
e585c43be9
Fixed #25809 -- Added BrinIndex support in django.contrib.postgres.
...
Thanks Tim Graham and Markus Holtermann for review.
2017-01-15 13:37:18 +01:00
Matthew Schinckel
236ebe94bf
Fixed #27149 -- Added Subquery and Exists database expressions.
...
Thanks Josh Smeaton for Oracle fixes.
2017-01-14 09:12:24 -05:00
Florian Apolloner
84c1826ded
Fixed #27718 -- Added QuerySet.union(), intersection(), difference().
...
Thanks Mariusz Felisiak for review and Oracle assistance.
Thanks Tim Graham for review and writing docs.
2017-01-14 08:32:07 -05:00
François Freitag
6b6be692fc
Refs #16614 -- Prevented database errors from being masked by cursor close.
...
When an error occurred during the cursor.execute statement, the cursor
is closed. This operation did not fail with client-side cursors. Now,
with server-side cursors, the close operation might fail (example
below). The original error should be raised, not the one raised by
cursor.close(), this is only clean-up code.
For example, one can attempt to create a named cursor for an invalid
query. psycopg will raise an error about the invalid query and the
server-side cursor will not be created on PostgreSQL. When the code
attempts to cursor.close(), it asks psycopg to close a cursor that was
not created. pyscopg raises a new error: psycopg2.OperationalError:
cursor "_django_curs_140365867840512_20" does not exist.
2017-01-14 07:13:00 -05:00
Simon Charette
2e55790838
Refs #25226 -- Cloned ArrayField.base_field on deconstruction.
...
This prevents the base_field from sharing attributes with the one used
during migrations.
2017-01-14 06:31:34 -05:00
Jinank Jain
f4c0eec713
Fixed #27699 -- Added negative timedelta support to parse_duration()
2017-01-14 11:17:54 +01:00
Simon Charette
4e48cfc108
Fixed #27709 -- Fixed get_for_models() for proxies with an empty cache.
...
Thanks Peter Inglesby for the report and tests.
2017-01-13 10:02:01 -05:00
Romain Garrigues
ede59ef6f3
Fixed #27518 -- Prevented possibie password reset token leak via HTTP Referer header.
...
Thanks Florian Apolloner for contributing to this patch and
Collin Anderson, Markus Holtermann, and Tim Graham for review.
2017-01-13 09:17:54 -05:00
Simon Charette
973cfd2ef5
Refs #20483 -- Implemented cascaded flush on Oracle.
...
The initial implementation added support for PostgreSQL but it is also required
on Oracle (13b7f299de
).
Thanks Mariusz Felisiak for the foreign key retreival queries.
2017-01-13 08:50:03 -05:00
Mariusz Felisiak
974d14534c
Fixed #27723 -- Set MultiWidget's subwidgets input type from attrs argument.
...
Regression in b52c73008a
.
2017-01-13 06:34:33 -05:00
Peter Inglesby
0b2e5da6ed
Fixed #27721 -- Added interface name to shell's IPython/bython import error.
2017-01-12 13:12:21 -05:00
Marten Kenbeek
1358a67bf9
Fixed #27713 -- Clarified NoReverseMatch error message when no view is found.
2017-01-11 21:40:18 -05:00
François Freitag
f3b7c05936
Refs #16614 -- Made QuerySet.iterator() use server-side cursors on PostgreSQL.
...
Thanks to Josh Smeaton for the idea of implementing server-side cursors
in PostgreSQL from the iterator method, and Anssi Kääriäinen and Kevin
Turner for their previous work. Also Simon Charette and Tim Graham for
review.
2017-01-11 09:25:37 -05:00
David Sanders
53bffe8d03
Fixed #24452 -- Fixed HashedFilesMixin correctness with nested paths.
2017-01-11 09:21:29 -05:00
Ed Morley
7156a6c9c4
Fixed #27717 -- Allowed migration optimization across AlterModelOptions.
2017-01-10 18:38:48 -05:00
Mariusz Felisiak
6872ce2266
Fixed #27712 -- Reallowed Input widget's attrs argument to set the input type.
...
Regression in b52c73008a
.
2017-01-10 11:38:27 -05:00
Anton Samarchyan
95f434e2b9
Fixed #27714 -- Fixed small visual artifact when clicking inline edit button in admin.
2017-01-10 11:24:28 -05:00
Adam Chainz
9daf8c43bd
Fixed #26961 -- Made admin checks run when DEBUG=False.
2017-01-10 07:02:13 -05:00
Adam Chainz
d57ecf40eb
Fixed #27673 -- Made admin's checks run at check time instead of during registration.
...
Thanks Morgan Aubert for the test.
2017-01-10 07:02:13 -05:00
Raffaele Salmaso
ed8c0c941d
Fixed #27688 -- Made messages' add_message() request check use ducktyping.
2017-01-09 18:03:10 -05:00
Tim Graham
823af53bf6
Fixed #27707 -- Removed shell support for IPython < 1.0.
2017-01-09 12:02:43 -05:00
David Sanders
e5e3747357
Fixed #27705 -- Added protocol/server_cls attributes to runserver for extensibility.
2017-01-09 10:41:33 -05:00
elky
0a47b675b0
Refs #15667 -- Removed hardcoded icon size for related widget wrapper.
...
The template-based widget rendering branch was started years ago.
This is obsolete now.
2017-01-09 09:59:14 -05:00
Sebastian Spiegel
8b734d2f99
Fixed #27432 -- Made app_label arguments limit showmigrations --plan output.
2017-01-06 19:50:31 -05:00
Simon Charette
d976760260
Fixed #27693 , Refs #27257 -- Fixed iexact lookup on JSONField keys.
...
Thanks Harris Lapiroff for the report.
2017-01-06 19:25:32 -05:00
Tim Graham
8516f7c49b
Fixed #27698 -- Added django.test.utils.ContextList.get()
2017-01-06 19:23:42 -05:00
Dmitry
12cefee5d8
Refs #15667 -- Prevented newlines in attrs.html widget rendering.
...
Removed the trailing newline from widget attrs.html template.
The solution may be revisited by fixing refs #9198 but not
for Django 1.11.
Thanks Dmitry Ivanchenko for the report and Preston Timmons for advice.
2017-01-06 19:11:32 -05:00
David Szotten
7a6863c338
Fixed #27690 -- Removed time.sleep(1) before dropping the test database.
...
Uncertain if this is needed, but no failures have appeared so far.
2017-01-06 15:28:22 -05:00
Claude Paroz
9390533951
Fixed #27696 -- Measured email long lines on encoded content
...
Thanks Pavel Pokrovskiy for the report and Tim Graham for the review.
2017-01-06 16:04:59 +01:00
Tim Graham
c85831e4b7
Fixed #27658 -- Prevented collectstatic from overwriting newer files in remote storages.
...
Thanks revimi for the initial patch.
2017-01-04 12:50:31 -05:00
Tim Graham
8ea541e6a2
Refs #2856 -- Removed redundant escaping in admin's "Perhaps it was deleted?" message.
2017-01-04 10:22:17 -05:00
anabelensc
1c12df4aa6
Fixed #25912 -- Added binary left/right shift operators to F expressions.
...
Thanks Mariusz Felisiak for review and MySQL advice.
2017-01-03 14:15:46 -05:00
Ketan Bhatt
f0ef0c49e9
Fixed #26621 -- Corrected simplify_regex()'s handling of named capture groups.
2017-01-03 13:55:11 -05:00
Mariusz Felisiak
fd2f7e4767
Fixed #27681 -- Fixed binary &/| operators for negative values on MySQL.
2017-01-03 12:41:44 -05:00
Karen Tracey
27267afc41
Fixed #2856 -- Replaced some 404s with messages in admin.
...
Instead of a 404, return a redirect to admin index page with a message
indicating that the requested object does not exist. This avoids the
admin returning 404 from "Recent Actions" links for deleted objects.
2017-01-03 11:31:05 -05:00
Tim Graham
c04207cd38
Replaced some GIS has_X_method skips with supports_X_aggr/has_X_function.
2017-01-03 09:49:00 -05:00
elky
fdb2309604
Refs #25004 -- Replaced PNGs with SVGs
2017-01-02 19:45:58 +01:00
Claude Paroz
2ebfda38e6
Fixed #25004 -- Updated OpenLayers-based widget to OpenLayers 3
...
Thanks Tim Graham for the review.
2017-01-02 19:45:52 +01:00
Jeroen van Veen
ed4264c5a4
Fixed #27522 -- Fixed runserver autoreload when using staticfile's options.
...
On a SyntaxError, made runserver exit with a stacktrace when using
contrib.staticfiles's runserver options such as --nostatic.
2017-01-02 08:57:50 -05:00
vinay karanam
6128c1736d
Refs #27637 -- Fixed timesince, timeuntil on New Year's Eve in a leap year.
2017-01-02 08:40:44 -05:00
Josh Smeaton
26c9f529c9
Refs #27632 -- Simplified params dict creation for Oracle ( #7772 )
2017-01-01 12:39:03 +11:00
Andrew Nester
69b7d4b116
Fixed #27458 -- Fixed invalid sequence/index names when using "USER"."TABLE" db_table on Oracle.
2016-12-30 17:11:12 -05:00
Tim Martin
e3f095b086
Fixed #26478 -- Made {% for %} reject invalid unpacking vars with quotes or vertical bars.
2016-12-30 09:22:40 -05:00
Mariusz Felisiak
7d14889aa3
Fixed #27615 -- Used timedeltas as arguments to Oracle database driver.
...
Removed unused DatabaseFeatures.driver_supports_timedeltas workaround.
2016-12-29 15:49:18 -05:00
Tim Graham
fae56427e1
Fixed #27649 -- Bumped required cx_Oracle to 5.2.
...
Removed obsolete workarounds from 1aa4889808
and dcf3be7a62
.
2016-12-29 12:45:25 -05:00
Adam Chainz
5eff8a7783
Fixed #25415 -- Made DiscoverRunner run system checks.
2016-12-29 12:33:24 -05:00
Adam Chainz
391c450fba
Refs #25415 -- Made MySQL backend skip field validation of unsupported models.
2016-12-29 12:01:48 -05:00
Florian Apolloner
00c7bfadf4
Removed unused enumerate.
2016-12-29 14:55:17 +01:00
Anton Samarchyan
0b5d4c49d6
Fixed #27622 -- Allowed test client to accept vendor tree JSON content types.
2016-12-29 08:32:15 -05:00
Illia Volochii
d20e046bbd
Fixed #27653 -- Added Ukrainian locale formats.
2016-12-29 07:31:32 -05:00
Simon Charette
813805833a
Fixed #27631 -- Prevented execution of transactional DDL statements when unsupported.
...
Executing a DDL statement during a transaction on backends that don't support
it silently commits, leaving atomic() in an incoherent state.
While schema_editor.execute() could technically be used to execute DML
statements such usage should be uncommon as these are usually performed through
the ORM. In other cases schema_editor.connection.execute() can be used to
circumvent this check.
Thanks Adam and Tim for the review.
2016-12-28 19:43:32 -05:00
Anton Samarchyan
5cf4894836
Fixed #27628 -- Fixed unarchiving a file without permission data.
2016-12-28 19:14:58 -05:00
Mariusz Felisiak
4579c3f6b8
Refs #27632 -- Unified query parameters by their types and values on Oracle.
...
Fixed Python 2 regression in 6dbe56ed78
.
Thanks Simon Charette for the implementation idea.
2016-12-28 17:20:42 -05:00
Shivang Bharadwaj
6a74950513
Fixed #27258 -- Prohibited django.Template.render() with non-dict context.
...
Thanks Shivang Bharadwaj for the initial patch.
2016-12-28 16:03:20 -05:00
Tim Graham
e3e80da7a5
Fixed #27651 -- Allowed M2M to concrete and proxy through model.
2016-12-28 12:48:17 -05:00
Josef Rousek
aaecf038ca
Fixed #27370 -- Prevented Select widget from using 'required' with a non-empty first value.
2016-12-28 10:45:22 -05:00
Mariusz Felisiak
6dbe56ed78
Fixed #27632 -- Unified query parameters by their values on Oracle.
2016-12-28 08:14:14 -05:00
Aleksi Häkli
f6671c5d78
Fixed #27647 -- Fixed Windows segmentation fault in runserver autoreload.
2016-12-28 08:04:09 -05:00
Preston Timmons
b52c73008a
Fixed #15667 -- Added template-based widget rendering.
...
Thanks Carl Meyer and Tim Graham for contributing to the patch.
2016-12-27 17:50:10 -05:00
Tim Graham
51cde873d9
Fixed #27648 -- Deprecated (iLmsu) regex groups in url() patterns.
2016-12-27 15:59:13 -05:00
roboslone
544b2ef29f
Fixed #27640 -- Fixed HttpResponse's __repr__() without a 'Content-Type' header.
2016-12-27 14:42:58 -05:00
Illia Volochii
4a51ba228b
Fixed #27642 -- Made forms.utils.flatatt() omit 'None' values from attrs.
2016-12-27 09:42:17 -05:00
Mariusz Felisiak
3e5c5e6754
Fixed #27637 -- Fixed timesince, timeuntil in leap year edge case.
2016-12-27 09:29:11 -05:00
Simon Charette
cd7efa2033
Fixed #25492 -- Checked deferred foreign key constraints before dropping them.
...
This allows running foreign key data and schema altering operations in the
same migration on PostgreSQL.
Thanks Tim for review.
2016-12-24 13:53:11 -05:00
Peter Inglesby
a4cac17200
Fixed #27498 -- Fixed filtering on annotated DecimalField on SQLite.
2016-12-24 10:38:48 -05:00
Adonys Alea Boffill
8ba01d1e42
Fixed #26543 -- Prevented "confirm form submission" browser prompt when reloading after an admin actions failure.
2016-12-23 17:29:24 -05:00
Adam Chainz
c1b221a9b9
Fixed #27625 -- Made LazySettings cache attributes in __dict__.
2016-12-23 10:58:06 -05:00
Adam Chainz
8669cf0e68
Fixed #27626 -- Moved MEDIA_URL/STATIC_URL validation to a system check.
2016-12-23 10:55:00 -05:00
Adam Chainz
8d94d575f8
Used @cached_property in RawQuerySet.
2016-12-23 10:12:48 -05:00
Adam Chainz
6ebf8f9057
Refs #27624 -- Made QuerySet._prefetch_related_lookups immutable.
2016-12-23 09:58:22 -05:00
Andrey Kuzminov
b8741c0058
Refs #18823 -- Corrected field name in an m2m manager error message.
2016-12-23 09:31:26 -05:00
Tim Graham
bcae045de0
Refs #26487 -- Removed unneeded ehlo() calls in SMTP backend.
...
starttls(), login(), and other connection methods already call
the method as needed.
2016-12-23 09:22:23 -05:00
Anton Samarchyan
da79240050
Fixed #26632 -- Skipped admin.E111 list_display_links check if get_list_display() is overridden.
2016-12-22 09:32:11 -05:00
jpic
bf6392bb75
Fixed #27600 -- Suppressed the REPL during shell's reading from stdin.
...
Thanks Adam Chainz for review and guidance.
2016-12-21 17:05:33 -05:00
Andrew Nester
24fa728a47
Fixed #27612 -- Added a check for duplicate URL instance namespaces.
2016-12-21 16:54:15 -05:00
Jaap Roes
3188b49ee2
Fixed #25753 -- Made get_format() cache the formats from Django settings
2016-12-21 17:40:08 +01:00
Claude Paroz
1206d7fa57
Refs #25753 -- Reset l10n cache when format settings change
...
Thanks Jaap Roes for the initial patch.
2016-12-21 17:40:08 +01:00
Preston Timmons
0b4d517263
Fixed #27584 -- Fixed display of render time template errors.
2016-12-20 10:36:33 -05:00
Tim Graham
09a7f121b5
Removed unneeded values in NullBooleanField.formfield().
...
These values are duplicated in the super().
2016-12-20 07:54:54 -05:00
Tim Graham
c27104a9c7
Fixed #27611 -- Doc'd that CSRF_COOKIE_HTTPONLY setting offers no security.
2016-12-19 17:56:58 -05:00
Tim Graham
1a04b1762b
Refs #25484 -- Made non-staticfiles {% static %} tag quote its output.
2016-12-19 16:18:06 -05:00
Tim Graham
e233f357bd
Refs #25484 -- Removed incorrect unquoting in {% static %}.
...
Regression in 374e6230ca
.
Thanks Florian Apolloner for the report and analysis.
2016-12-19 16:18:06 -05:00
Mariusz Felisiak
cc0bb07013
Refs #19884 -- Removed DatabaseFeatures.can_introspect_max_length.
...
Unused (always True) after 3e43d24ad3
.
2016-12-19 16:16:11 -05:00
Jerome Leclanche
a849ec1880
Fixed #27606 -- Fixed HttpResponseRedirect.__repr__() crash when DisallowedRedirect is raised.
2016-12-19 10:01:03 -05:00
Henry Dang
6af23a4521
Fixed #27377 -- Clarified that prepopulated_fields doesn't work with OneToOneField.
2016-12-19 08:33:46 -05:00
Mariusz Felisiak
3e43d24ad3
Refs #19884 -- Added CharField max_length introspection on Oracle.
2016-12-19 08:29:42 -05:00
alix-
374e6230ca
Fixed #25484 -- Made {% static %} render escaped URLs.
2016-12-17 10:03:44 -05:00
Raphael Michel
33e86b3488
Refs #16859 -- Disabled CSRF_COOKIE_* checks when using CSRF_USE_SESSIONS.
2016-12-17 09:59:48 -05:00
Sergey Fedoseev
5d28fef8f9
Made NumPoints raise TypeError on MySQL when it's used on fields besides LineStringField.
2016-12-16 10:34:02 -05:00
Tim Graham
3215bc98fe
Refs #27576 -- Fixed running Django's tests if GDAL isn't installed.
2016-12-15 17:38:34 -05:00
Sergey Fedoseev
b01ceae843
Fixed #25938 -- Factored out CPointerBase base class for GEOSBase/GDALBase.
2016-12-15 16:59:08 -05:00
Sergey Fedoseev
4884472447
Fixed #27576 -- Made get_srid_info() fallback to GDAL if SpatialRefSys is unavailable.
2016-12-15 16:36:18 -05:00
Sergey Fedoseev
986c7d522a
Fixed #27497 -- Improved support of geodetic coordinates on SpatiaLite.
...
Area function, Distance function, and distance lookups now work with
geodetic coordinates on SpatiaLite.
2016-12-15 15:31:07 -05:00
Sergey Fedoseev
38a6df555f
Fixed #27602 -- Added Oracle support for BoundingCircle GIS function.
2016-12-15 14:16:09 -05:00
Sergey Fedoseev
5a23cc00f5
Fixed #27607 -- Added Oracle support for AsGML GIS function.
2016-12-15 14:00:08 -05:00
Adam Chainz
d2a26c1a90
Optimized Model instantiation a bit.
...
* Avoid some unnecessary attribute lookups, e.g. access signals directly rather than from module
* Alias some repeat accesses inside the method to use the slightly faster local lookups
* Use tuple to iterate remaining kwargs as it's faster to construct
* Cache Field.get_default() to avoid running through all the logic on every call
* Use a cached list of the properties on the model class to avoid repeat isinstance() calls
2016-12-15 13:42:44 -05:00
David Hoffman
bf84d042e0
Fixed #27582 -- Allowed HStoreField to store null values.
2016-12-15 10:35:44 -05:00
Waldemar Kornewald
b24af2f405
Fixed #27418 -- Fixed occasional missing plural forms in JavaScriptCatalog.
2016-12-14 18:20:30 -05:00
Michael Scott
1e629928e9
Fixed #27313 -- Allowed overriding admin popup response template.
2016-12-14 18:10:56 -05:00
Michael Lelyakin
fb1349ce8c
Used ternary if/else in utils.lorem_ipsum.words().
2016-12-14 17:36:34 -05:00
Morgan Aubert
ef889d5b10
Fixed #27599 -- Fixed Field.__str__() crash for fields not attached to models.
2016-12-14 14:04:26 -05:00
Tim Graham
92c5eeac33
Fixed #27598 -- Allowed specifying directories for a filesystem template loader.
...
Thanks Carl Meyer for review.
2016-12-14 10:33:51 -05:00
Daniel Hillier
7da37699e8
Fixed #27594 -- Fixed select_related() with reverse self-referential OneToOneField.
...
Fixed definition of `klass_info['from_parent']` so that two models aren't
considered from a parent class if the model classes are the same.
2016-12-14 07:46:27 -05:00
Merrin Macleod
eb7fb565e6
Removed an unnecessary, discouraging sentence on the "It worked!" page.
2016-12-13 13:45:09 -05:00
Tim Graham
7a4e2fc5a2
Fixed #27588 -- Removed unneeded colon in makemigrations output.
2016-12-12 09:38:13 -05:00
Simon Charette
ecd625e830
Fixed #27310 -- Stopped rendering apps in RenameModel.state_forwards.
...
Thanks Tim for the review.
2016-12-10 10:19:06 -05:00
Mariusz Felisiak
8e3a72f4fb
Fixed #27583 -- Fixed MultiValueDict.getlist() crash when values for key is None.
...
Restored the behavior before 727d7ce6cb
.
2016-12-09 15:31:52 -05:00
Sergey Fedoseev
9b79281e31
Fixed #27472 -- Fixed GEOSGeometry('POINT EMPTY').transform crash.
2016-12-08 10:24:05 -05:00
Sergey Fedoseev
a413ef2155
Refs #27472 -- Fixed OGRGeometry('POINT EMPTY').geos crash.
2016-12-08 10:24:05 -05:00
Sergey Fedoseev
65a1f32319
Refs #27472 -- Fixed GEOSGeometry('POINT EMPTY').ogr crash.
2016-12-08 10:24:05 -05:00
Yohann Gabory
47ef8f31f3
Fixed #13312 -- Allowed specifying the order of null fields in queries.
...
Thanks Mariusz Felisiak for finishing the patch.
2016-12-08 09:54:07 -05:00
Sergey Fedoseev
82fd779af5
Simplified Transform GIS function by setting output_field.
2016-12-08 09:48:26 -05:00
Collederas
07ac5d830a
Added period in BaseFormView docstring.
2016-12-08 07:39:15 -05:00
InvalidInterrupt
98359109eb
Fixed #17002 -- Allowed using a ManyToManyField through model that inherits another.
2016-12-07 17:50:51 -05:00
Tim Graham
b5f0b3478d
Fixed #27579 -- Added aliases for Python 3's assertion names in SimpleTestCase.
2016-12-07 17:42:31 -05:00
Sergey Fedoseev
f909fa84be
Fixed #25708 -- Fixed annotations with geometry values.
2016-12-07 14:16:29 -05:00
Vinay Karanam
4a246a02bd
Refs #17235 -- Made MultiPartParser leave request.POST immutable.
2016-12-07 08:28:46 -05:00
Sergey Fedoseev
183f501540
Fixed #26789 -- Fixed handling of empty geometries in BaseSpatialField.get_db_prep_save().
2016-12-06 13:58:22 -05:00
Sergey Fedoseev
b90d72facf
Refs #26789 -- Fixed output of WKBWriter for empty points and polygons.
2016-12-06 13:58:22 -05:00
Hiroki Kiyohara
181f492ad0
Fixed #27416 -- Prevented ModelFormSet from creating objects for invalid PKs in data.
2016-12-06 13:06:58 -05:00
Andreas Pelme
373140b07a
Fixed #27567 -- Fixed crash in the debug view when request.user errors.
2016-12-06 12:28:00 -05:00
nmhung89
8f76673f34
Fixed #18729 -- Made admin changelist not use distinct() if a list_filter doesn't require it.
2016-12-06 10:38:38 -05:00
Anton Samarchyan
d0112cf930
Fixed #26494 -- Made Archive.extract() preserve file permissions.
2016-12-06 08:28:36 -05:00
Tim Graham
dd99e69fa8
Refs #27025 -- Fixed Python 3.6 deprecation warning for empty model super() calls.
...
https://bugs.python.org/issue23722
Thanks Nick Coghlan for advice and review.
2016-12-05 19:37:23 -05:00
Mariusz Felisiak
2d259e6bad
Refs #27324 -- Optimized DatabaseIntrospection.get_constraints() for foreign keys on Oracle.
2016-12-05 19:12:37 -05:00
Mariusz Felisiak
b059ddf066
Fixed #27561 -- Added Oracle support for binary "or" operator.
...
Removed DatabaseFeatures.supports_bitwise_or feature (unused, always True).
2016-12-02 16:59:39 -05:00
Jon Dufresne
6abd6c598e
Fixed #27563 -- Moved "apply limit_choices_to" code from BaseModelForm to fields_for_model().
2016-12-02 08:40:24 -08:00
Claude Paroz
d49551bc26
Fixed #27119 -- Cached BaseFormSet.management_form property
...
Thanks Tim Graham for the review.
2016-12-01 20:17:25 +01:00
Anton Samarchyan
47744a0a4e
Fixed #27542 -- Made Client.force_login() skip auth backends without get_user().
2016-12-01 09:50:08 -05:00
Anton Bazhanov
e690eb405f
Refs #27505 -- Made Paginator's exception messsages translatable.
2016-12-01 08:39:48 -05:00
Keda87
48826aa541
Fixed #27546 -- Removed hardcoded class names in __repr__() methods.
2016-12-01 08:11:09 -05:00
Claude Paroz
cc9e429701
Fixed #27557 -- Casted GEOSGeometry only when necessary
...
Thanks Pete Flugstad for the report, and Tim Graham for the review.
2016-11-30 17:49:41 +01:00
Sergey Fedoseev
4464b9b9ad
Fixed #27556 -- Added Oracle support for IsValid function and isvalid lookup.
2016-11-30 11:22:56 -05:00
Mariusz Felisiak
e17f40f4b5
Refs #24245 -- Added introspection for database defaults on Oracle.
2016-11-30 11:21:57 -05:00
Sergey Fedoseev
6f43b2b8a5
Removed unneeded GeoAggregate.convert_value() & DatabaseOperations.convert_geom().
2016-11-30 10:56:09 -05:00
Lex Berezhny
1a9bd75bfa
Refs #27358 -- Fixed system check crash with an empty FileField.upload_to.
2016-11-30 10:07:42 -05:00
Raphael Michel
ddf169cdac
Refs #16859 -- Allowed storing CSRF tokens in sessions.
...
Major thanks to Shai for helping to refactor the tests, and to
Shai, Tim, Florian, and others for extensive and helpful review.
2016-11-30 08:57:27 -05:00
Sergey Fedoseev
21322f9271
Fixed #27552 -- Added docs/test for GEOSGeometry.normalize().
2016-11-30 07:39:03 -05:00
Lex Berezhny
8eb56f3c78
Fixed #27507 -- Used SchemaEditor.execute() to run deferred_sql in migrate's sync_apps().
2016-11-29 20:00:16 -05:00
Adam Chainz
71609a5b90
Fixed #27555 -- Removed django.utils.functional.lazy_property.
2016-11-29 19:01:12 -05:00