Sergey Fedoseev
fa453b03a6
Fixed #29507 -- Added Oracle support for Envelope GIS function.
2018-06-20 16:48:57 +05:00
Carlton Gibson
5b73317181
Fixed #29502 -- Allowed users with the view permission to use autocomplete_fields.
2018-06-18 15:36:20 -04:00
Carlton Gibson
958c7b301e
Fixed #29419 -- Allowed permissioning of admin actions.
2018-06-18 15:07:29 -04:00
Mariusz Felisiak
6dd4edb1b4
Fixed #29496 -- Fixed crash on Oracle when converting a non-unique field to primary key.
...
Thanks Tim Graham for the review.
2018-06-17 08:51:02 +02:00
humbertotm
e95008f241
Fixed #29152 -- Allowed passing kwargs to ArgumentParser initialization in management commands.
2018-06-16 15:54:59 -04:00
oliver
78972af367
Fixed #29469 -- Added a helpful makemigrations error if app_label contains dots.
2018-06-16 15:18:57 -04:00
Claude Paroz
998d774195
Fixed #29492 -- Improved compilemessages speed
2018-06-16 11:52:02 +02:00
Paulo
553617e613
Fixed #29487 -- Accounted for object level permissions when calculating change view's read-only fields.
...
Thanks Matthew Frazier for the report and fix.
2018-06-15 21:54:22 -04:00
Jeff
fcc4e251db
Fixed #29000 -- Fixed RenameModel's renaming of a M2M column when run after RenameField.
...
Regression in 45ded053b1
.
2018-06-15 11:51:09 -04:00
Henk Kahlfuß
3eb9127678
Fixed #23869 -- Made ModelAdmin.get_deleted_objects() use has_delete_permission() for permissions checking.
2018-06-15 10:31:08 -04:00
Tim Graham
ec2c9c3531
Refs #29428 -- Fixed admin check crash when using a query expression in ModelAdmin.ordering.
2018-06-14 21:04:43 -04:00
Tim Graham
0d8e3e608e
Fixed #29428 -- Fixed admin changelist crash when using a query expression without asc()/desc() in the ordering.
2018-06-14 14:22:04 -04:00
Claude Paroz
a77f21880d
Fixed #24384 -- Allowed compilemessages to continue running after nonfatal errors.
...
Thanks Aymeric Augustin for the report and Carlton Gibson and Tim Graham for
the reviews.
2018-06-13 21:09:02 +02:00
Carlton Gibson
b30f9b131c
Refs #29419 , #8936 -- Removed change permission requirement for admin actions.
...
Partially reverted 825f0beda8
.
2018-06-13 14:49:28 -04:00
Tim Graham
9e4f26bb40
Fixed #29483 -- Confirmed support for GDAL 2.3.
2018-06-12 13:34:58 -04:00
Jon Dufresne
8dcd43ce06
Restored django.test.utils.patch_logger() for backwards compatibility.
...
Added back after 607970f31c
.
2018-06-12 11:33:16 -04:00
Bartosz Grabski
2bc014750a
Fixed #29452 -- Fixed makemessages setting charset of .pot files.
2018-06-11 21:34:13 -04:00
Arthur Silva
bc1435551c
Fixed #29464 -- Silenced post-process messages in collectstatic's default verbosity.
2018-06-11 20:21:58 -04:00
Tim Graham
860903b261
Dropped support for GDAL 1.9 and 1.10.
2018-06-11 08:33:09 -04:00
Tim Graham
7a266e25be
Fixed 'invalid escape sequence' warning in GEOSGeometryBase.from_ewkt().
2018-06-09 09:27:33 +02:00
Claude Paroz
f3836144db
Fixed #29484 -- Removed the need to specify SPATIALITE_LIBRARY_PATH with Spatialite 4.2+.
...
Thanks Tim Graham for the review.
2018-06-09 09:24:20 +02:00
Claude Paroz
56611a96df
Refactored naturaltime to use a class-based formatter
2018-06-08 18:00:17 +02:00
Tim Graham
236bcfea42
Fixed #29474 -- Simplified BaseInlineFormset.save_new().
2018-06-07 21:14:19 -04:00
Josh Schneier
98e8c0293b
Removed unused HttpRequest._post_parse_error attribute.
...
Unused since 8f8c54f70b
.
2018-06-07 18:51:33 -04:00
Claude Paroz
ce3351b950
Fixed #29301 -- Added custom help formatter to BaseCommand class
...
This partially reverts c3055242c8
.
Thanks Adam Johnson and Carlton Gibson for the reviews.
2018-06-06 19:16:10 +02:00
Tim Graham
e9bd1a3e12
Refs #28462 -- Fixed 'invalid escape sequence' warning on Python 3.6+.
2018-06-06 11:40:24 -04:00
Claude Paroz
1fac974067
Refs #29353 -- Removed duplicated logic in StaticFilesHandler.get_response().
...
Thanks Sergey Fursov for spotting the issue.
2018-06-05 11:58:38 +02:00
Claude Paroz
bec651a427
Fixed #10827 -- Ensured ContentTypes are created before permission creation.
2018-06-03 22:19:04 -04:00
humbertotm
747ff7a30b
Fixed #29385 -- Made admindocs ModelDetailView show model properties.
...
Original patch by bkaluza. Tests and docs by humbertotm.
2018-06-03 21:00:28 -04:00
Adam Donaghy
b18650a263
Fixed #28462 -- Decreased memory usage with ModelAdmin.list_editable.
...
Regression in 917cc288a3
.
2018-06-01 10:41:05 -04:00
Tim Graham
f185d929fa
Fixed #29460 -- Added support for GEOS 3.6.
2018-05-31 11:35:59 -04:00
Sara Heins
5008d59a2a
Fixed #28892 -- Allowed admin navbar height to expand if needed.
2018-05-29 21:52:51 -04:00
Tim Graham
c03e41712b
Refs #28748 -- Reallowed lazy model field choices.
...
Regression in 3aa9ab39cc
.
2018-05-29 21:43:38 -04:00
Dohyeon Kim
f1f4aeb22e
Fixed #28044 -- Unified the logic for createsuperuser's interactive and --noinput modes.
2018-05-29 08:41:32 -04:00
Wang Dongxiao
0914a2003b
Added 'caches' to django.core.cache.__all__.
2018-05-28 09:14:46 -04:00
Paulo
6104875a2c
Fixed #29230 -- Fixed nested prefetches that clash with descriptors.
2018-05-27 21:45:51 -04:00
Mariusz Felisiak
4ab1f559e8
Fixed #29416 -- Removed unnecesary subquery from GROUP BY clause on MySQL when using a RawSQL annotation.
...
Regression in 1d070d027c
.
2018-05-27 18:25:19 -04:00
Daniel Hepper
4e016d1372
Removed obsolete BaseHandler attributes.
...
Unused since d334f46b7a
.
2018-05-27 11:21:27 -04:00
Tim Graham
5cc81cd9eb
Reverted "Fixed #29324 -- Made Settings raise ImproperlyConfigured if SECRET_KEY is accessed and not set."
...
This reverts commit b3cffde555
due to
a regression and performance concerns.
2018-05-26 21:06:58 -04:00
ryabtsev
b4fd9b5ad4
Fixed #29432 -- Allowed passing an integer to the slice template filter.
2018-05-26 20:56:51 -04:00
Xaroth Brook
39283c8edb
Fixed #29415 -- Fixed detection of custom URL converters in included patterns.
2018-05-26 20:13:48 -04:00
Markus Holtermann
e01fa015c0
Refs #27098 -- Removed unused introspection queries.
...
Unused since 578711c310
.
Thanks Ian Foote for finding this.
2018-05-26 16:29:02 +02:00
Ryan Rubin
a8d12bc280
Fixed #29400 -- Fixed crash in custom template filters that use decorated functions.
...
Regression in 620e9dd31a
.
2018-05-25 11:11:46 -04:00
Ramiro Morales
f40e71a957
Fixed #29417 -- Corrected two admin page titles for view-only users.
2018-05-23 11:02:37 -04:00
Bogdan Mateescu
392963e8e4
Fixed #29421 -- Improved Romanian locale formats
2018-05-20 17:12:13 +02:00
Paulo Alvarado
ffb72a95bc
Fixed #29414 -- Restored form inputs on admin inlines when the user doesn't have the change permission.
...
Regression in 825f0beda8
.
2018-05-18 19:50:58 -04:00
bakabiko
a7bc1aea03
Fixed #29380 -- Added support for QuerySet.select_for_update()'s nowait and skip_locked options on MySQL 8+.
2018-05-18 19:37:36 -04:00
Tim Graham
9792af3648
Increased the default PBKDF2 iterations for Django 2.2.
2018-05-17 11:05:45 -04:00
Tim Graham
b9dd8512f2
Advanced deprecation warnings for Django 2.2.
2018-05-17 11:05:45 -04:00
Tim Graham
63de263e03
Bumped version; master is now 2.2 pre-alpha.
2018-05-17 09:37:06 -04:00
Claude Paroz
77f6340d3b
Updated translation catalogs
2018-05-17 12:09:40 +02:00
olivierdalang
825f0beda8
Fixed #8936 -- Added a view permission and a read-only admin.
...
Co-authored-by: Petr Dlouhy <petr.dlouhy@email.cz>
Co-authored-by: Olivier Dalang <olivier.dalang@gmail.com>
2018-05-16 06:44:55 -04:00
Richard Morrison
35b6a348de
Added missing word to render_to_response deprecation warning.
2018-05-16 10:06:36 +02:00
Claude Paroz
a177f854c3
Fixed #16470 -- Allowed FileResponse to auto-set some Content headers.
...
Thanks Simon Charette, Jon Dufresne, and Tim Graham for the reviews.
2018-05-15 18:12:11 +02:00
Ryan P Kilby
2dcc5d629a
Fixed #29392 -- Disallowed use of abbreviated forms of --settings and --pythonpath management command options.
2018-05-14 22:18:22 -04:00
Paulo
265506bbc3
Refs #28834 -- Moved ancestor field cached value fallback to related fields descriptor.
2018-05-14 21:17:02 -04:00
Tim Graham
cae0107287
Increased the default PBKDF2 iterations for Django 2.1.
2018-05-13 20:06:20 -04:00
Hasan Ramezani
31ce1f7433
Refs #29131 -- Fixed space handling in ArrayField's item_invalid message.
2018-05-13 17:57:28 -04:00
T N
2405833c53
Fixed #29401 -- Updated admin's jQuery to 3.3.1.
2018-05-13 13:02:24 -04:00
Claude Paroz
d65b0f72de
Fixed #17379 -- Removed management commands deactivation of the locale.
2018-05-13 10:21:53 +02:00
Tim Graham
1e0cbc72e5
Moved to_language() to django.utils.translation.
...
Follow up to 1b7d524cfa
.
2018-05-12 15:03:38 -04:00
Tim Graham
1b7d524cfa
Consolidated duplicate to_locale() implementations.
...
Follow up to ac59ec8f1a
.
2018-05-12 12:58:21 -04:00
Hasan Ramezani
ac59ec8f1a
Aliased trans_null.to_locale() to trans_real.to_locale().
...
The implementations have unintentionally diverged.
2018-05-12 10:54:22 -04:00
Stefan R. Filipek
a5a2ceeb45
Fixed #27629 -- Added router.allow_relation() calls for assignments between unsaved model instances.
2018-05-10 20:42:44 -04:00
Claude Paroz
9c4ea63e87
Replaced TOKEN_* constants by TokenType enums.
...
Thanks Tim Graham for the review.
2018-05-10 17:51:51 +02:00
Claude Paroz
1e20fedb35
Upgraded OpenLayers to 4.6.5 for OpenLayersWidget
2018-05-10 16:25:37 +02:00
Maximilian Merz
78912ccd0e
Fixed #21408 — German Translation for “3 days ago”
...
The problem:
“3 days ago” should translate to “vor 3 Tagen” in German, while “3 days” translates to “3 Tage”. #21408 describes that django always translated to “Tage”, even when the dative “Tagen” was correct. The same applies to months (“Monate”/“Monaten”) and years (“Jahre”/“Jahren”).
The solution:
Let `timesince` caller provide the string dict to use for the time-related strings.
2018-05-10 15:53:33 +02:00
Morgan Aubert
704443acac
Fixed #29363 -- Added SimpleTestCase.assertWarnsMessage().
2018-05-09 11:40:28 -04:00
Nicolas Noé
c629d4e956
Fixed #29389 -- Made Paginator reject non-integer page numbers of type float.
2018-05-09 09:28:52 -04:00
Claude Paroz
3574a6d32f
Replaced context by comment in 2 humanize strings.
2018-05-09 09:46:38 +02:00
Tim Graham
7ac3008fe4
Refs #29350 -- Fixed 'invalid escape sequence' warning in SQLite introspection.
2018-05-08 10:42:24 -04:00
Nicolas Noé
c4158d050f
Fixed #29370 -- Added choices to LogEntry.action_flag field.
2018-05-07 10:07:45 -04:00
Claude Paroz
607970f31c
Replaced django.test.utils.patch_logger() with assertLogs().
...
Thanks Tim Graham for the review.
2018-05-07 09:34:00 -04:00
Sanket Saurav
079f324357
Fixed #28913 -- Fixed error handling when MIGRATIONS_MODULES specifies a nonexistent top-level package.
2018-05-05 18:26:33 -04:00
Samir Shah
10b44e4525
Fixed #26688 -- Fixed HTTP request logging inconsistencies.
...
* Added logging of 500 responses for instantiated responses.
* Added logging of all 4xx and 5xx responses.
2018-05-04 20:55:03 -04:00
Carlton Gibson
21fd8041c1
Refs #29358 -- Corrected wording in primary key check message.
2018-05-03 15:28:37 +02:00
Hasan Ramezani
816b8d9518
Fixed #29358 -- Added a system check to prohibit models with more than one primary_key field.
2018-05-03 09:08:29 +02:00
CHI Cheng
98019df855
Used double quotation marks for csrf form element.
2018-05-03 08:57:18 +02:00
Mariusz Felisiak
483cc1c430
Refs #28859 -- Fixed "no data found" exception handling with cx_Oracle 6.3+.
2018-04-28 19:39:45 +02:00
Zackary Troop
30f8642f2e
Fixed #29350 -- Fix get_primary_key_column() method in sqlite3 backend
...
Thanks Tim Graham and Mariusz Felisiak for the reviews.
2018-04-28 12:01:45 +02:00
priyanshsaxena
6b3d292043
Fixed #29015 -- Added an exception if the PostgreSQL database name is too long.
2018-04-27 21:37:42 -04:00
Oscar Esgalha
6d1f576945
Fixed #29367 -- Fixed model state on objects with a primary key created with QuerySet.bulk_create().
2018-04-27 17:57:38 -04:00
Nicolas Noé
3246ad1065
Fixed #27480 -- Added cache.touch().
2018-04-27 17:48:35 -04:00
Claude Paroz
a9189d27ef
Fixed #29353 -- Made StaticFilesHandler return a 404 response when settings.DEBUG is False
2018-04-25 10:38:13 +02:00
Claude Paroz
3aae43d800
Fixed #28973 -- Silenced copying/linking messages in collectstatic's default verbosity.
2018-04-23 23:04:02 -04:00
François Freitag
d1413c5d70
Refs #28312 -- Added an optimized __bool__() to ModelChoiceIterator.
...
COUNT is more expensive than EXISTS; use the latter when possible.
2018-04-23 13:03:07 -04:00
François Freitag
3fca95e1ad
Fixed #28312 -- Made ModelChoiceIterator.__len__() more memory-efficient.
...
Instead of loading all QuerySet results in memory, count the number of
entries. This adds an extra query when list() or tuple() is called on the
choices (because both call __len__() then __iter__()) but uses less
memory since the QuerySet results won't be cached. In most cases, the
choices will only be iterated on, meaning that __len__() won't be called
and only one query will be executed.
2018-04-23 12:39:43 -04:00
Hasan Ramezani
b33f10d8cc
Refs #29131 -- Made ArrayField error messages index from 1 instead of 0.
2018-04-22 22:18:46 -04:00
Hasan Ramezani
dd68b51e1d
Fixed #29295 -- Fixed management command crash when using subparsers.
...
Thanks Tim Graham for the fix.
2018-04-21 17:33:17 -04:00
orlnub123
21420096c4
Fixed #29247 -- Allowed blank model field choice to be defined in nested choices.
2018-04-20 11:06:14 -04:00
Tom
11b8c30b9e
Ref #23919 -- Replaced some os.path usage with pathlib.Path.
2018-04-19 21:30:00 -04:00
Adnan Umer
534d8d875e
Fixed #28600 -- Added prefetch_related() support to RawQuerySet.
2018-04-19 13:48:27 -04:00
Adnan Umer
f2026ca5e2
Fixed #29337 -- Added __len__() & __bool__() to RawQuerySet.
2018-04-19 12:46:31 -04:00
Adnan Umer
ec0319ff82
Fixed #29339 -- Added result caching to RawQuerySet.
2018-04-19 11:35:49 -04:00
Tom
c1c163b427
Fixed #28574 -- Added QuerySet.explain().
2018-04-19 10:52:19 -04:00
Brett Cannon
64b74804c5
Fixed #29334 -- Updated pypi.python.org URLs to pypi.org.
2018-04-17 20:24:27 -04:00
Jon Dufresne
b3cffde555
Fixed #29324 -- Made Settings raise ImproperlyConfigured if SECRET_KEY is accessed and not set.
2018-04-17 13:02:05 -04:00
Mariusz Felisiak
e0a3cfaca0
Simplified Oracle's DatabaseOperations.cache_key_culling_sql() with LIMIT/OFFSET.
2018-04-17 12:50:43 -04:00
Chris Jerdonek
fdc936c913
Fixed #29253 -- Made method_decorator(list) copy attributes.
2018-04-16 13:38:37 -04:00
GS-14
93331877c8
Fixed #29274 -- Increased the number of common passwords from 1k to 20k.
2018-04-16 11:01:47 -04:00
Daniel Miller
60156750f6
Fixed #29330 -- Fixed crash when pickling BaseExpression.
...
Regression in cfff2af02b
.
2018-04-16 10:15:13 -04:00
Alex Gaynor
9a56b4b13e
Fixed #27863 -- Added support for the SameSite cookie flag.
...
Thanks Alex Gaynor for contributing to the patch.
2018-04-13 20:58:31 -04:00
Matthias Kestenholz
13efbb233a
Fixed #29322 -- Made admin check all ModelAdmin fieldsets for duplicates.
2018-04-13 11:08:30 -04:00
Mariusz Felisiak
0b66c3b442
Fixed #29286 -- Fixed column mismatch crash with QuerySet.values() or values_list() after combining an annotated and unannotated queryset with union(), difference(), or intersection().
...
Regression in a0c03c62a8
.
Thanks Tim Graham and Carlton Gibson for reviews.
2018-04-13 12:15:52 +02:00
Flávio Juvenal
e1f13f1551
Fixed #29320 -- Added an exception when an annotation alias matches a ForeignKey attname.
2018-04-12 21:15:40 -04:00
Paul Donohue
33a0b7ac81
Fixed #29296 -- Fixed crashes in admindocs when a view is a callable object.
2018-04-12 13:11:08 -04:00
Jeremy Bowman
ee17bb8a67
Fixed #29193 -- Prevented unnecessary foreign key drops when altering a unique field.
...
Stopped dropping and recreating foreign key constraints on other fields
in the same table as the one which is actually being altered in an
AlterField operation.
Regression in c3e0adcad8
.
2018-04-11 23:17:11 -04:00
David Foster
c3055242c8
Fixed #29301 -- Made management command --help display command-specific arguments before common arguments.
2018-04-11 13:52:20 -04:00
Alasdair Nicol
65c44a5c1d
Fixed #29307 -- Fixed inspectdb import paths for django.contrib.postgres fields.
...
Thanks erindy for the report.
2018-04-10 09:33:05 -04:00
Vinay Karanam
6a1957bb98
Fixed #28950 -- Fixed ArrayField.has_changed() for empty values.
2018-04-07 17:53:33 -04:00
Tim Graham
85d853b2d3
Fixed #29289 -- Clarified PasswordResetTokenGenerator comment regarding the data hashed to generate tokens.
...
Thanks Luke Plant for the draft text.
2018-04-06 11:05:51 -04:00
Faheel Ahmad
5d4d62bf4f
Fixed #29248 -- Renamed admin CSS class field-box to fieldBox.
2018-04-05 10:55:36 -04:00
Jon Dufresne
be6ca89396
Fixed #27991 -- Added obj arg to InlineModelAdmin.has_add_permission().
...
Thanks Vladimir Ivanov for the initial patch.
2018-04-04 19:21:50 -04:00
Jirka Vejrazka
6148dda72f
Fixed #29288 -- Made {% widthratio %} assign to as var if an exception occurs.
2018-04-04 14:03:16 -04:00
safu9
9fd9f8bbb2
Fixed #29284 -- Made ImageField render with accept="image/*"' HTML attribute.
2018-04-04 13:16:03 -04:00
Dmitry Dygalo
c979c0a2b8
Fixed #25718 -- Made a JSONField lookup value of None match keys that have a null value.
2018-04-04 10:53:46 -04:00
Mariusz Felisiak
816b386d41
Refs #24791 -- Made PostgreSQL's nodb connection use first PostgresSQL db when 'postgres' db isn't available.
...
Thanks Tim Graham and Claude Paroz for reviews.
2018-04-03 22:21:47 +02:00
Mariusz Felisiak
55cc26941a
Refs #28643 -- Added Repeat database function.
...
Thanks Tim Graham and Nick Pope for reviews.
2018-04-03 19:36:12 +02:00
Mariusz Felisiak
6141c752fe
Fixed #29251 -- Added bytes to str conversion in LPad/RPad database functions on MySQL.
...
Thanks Tim Graham for the review.
2018-04-03 18:24:04 +02:00
Tim Graham
4f7467b690
Refs #28577 -- Added check for HStoreField to prevent mutable default.
2018-04-03 11:12:56 -04:00
Claude Paroz
2a2ed0e70a
Fixed #29116 -- Fixed OpenLayersWidget deserialization ignoring the widget map's SRID.
...
Regression in 6ecccad711
.
2018-04-02 10:20:00 -04:00
Claude Paroz
f3b69f9757
Fixed #29273 -- Prevented initial selection of empty choice in multiple choice widgets.
...
Regression in b52c73008a
.
2018-04-02 08:52:53 -04:00
desigrammer
d31a248c64
Removed unused regexes in django.core.management.templates.
...
Unused since their introduction in a9a0f0b03f
.
2018-04-02 07:32:24 -04:00
Dan Watson
e163effecc
Fixed #29279 -- Added renderer argument to ModelForm.
2018-03-31 20:45:59 -04:00
Chris Lamb
84ad721bd9
Fixed #29275 -- Made assertFormError() output "(actual errors: none)" instead of "(actual errors: )".
2018-03-31 18:35:45 -04:00
Malte Gerth
874977d388
Fixed #29270 -- Fixed UserChangeForm crash if password field is excluded.
2018-03-29 15:25:54 -04:00
Simon Charette
2156565b5b
Fixed #29245 -- Made autodetector treat field renames + db_column addition as RenameField.
2018-03-28 12:43:43 -04:00
Abeer Upadhyay
1bf4646f91
Fixed #29258 -- Added type checking for login()'s backend argument.
2018-03-28 10:10:18 -04:00
Mads Jensen
623117d1f1
Removed unnecessary variable in Lexer.create_token().
2018-03-24 19:10:56 -04:00
Dan Watson
29150d5da8
Fixed #23406 -- Allowed migrations to be loaded from .pyc files.
2018-03-23 13:20:38 -04:00
Tim Graham
a4f0e9aec7
Fixed #28718 -- Allowed user to request a password reset if their password doesn't use an enabled hasher.
...
Regression in aeb1389442
.
Reverted changes to is_password_usable() from
703c266682
and documentation changes from
92f48680db
.
2018-03-22 10:03:43 -04:00
Michael Sinov
9aca67bea8
Fixed #27533 -- Fixed inspectdb crash if a unique constraint uses an unsupported type.
2018-03-21 12:28:16 -04:00
Tim Graham
a170dac887
Fixed too many parentheses in inspectdb Meta.unique_together output.
...
Regression in c76d87427d
.
2018-03-21 10:39:36 -04:00
Tim Graham
c76d87427d
Refs #23919 -- Removed obsolete comments about u'' prefixes.
2018-03-21 08:15:07 -04:00
Tim Graham
ba76c3c45b
Refs #27656 -- Removed "This will" prefix from djanog/templatetags/i18n.py docstrings.
2018-03-21 08:08:40 -04:00
Sergey Fedoseev
27ca5ce19f
Used datetime.timezone.utc instead of pytz.utc for better performance.
2018-03-20 15:24:16 -04:00
Nick Pope
281c0223b3
Refs #29227 -- Simplified NullBooleanField by making it subclass BooleanField.
2018-03-20 12:10:10 -04:00
Tim Graham
6421bd702f
Refs #29227 -- Made inspectdb generate BooleanField(null=True) rather than NullBooleanField.
2018-03-20 12:10:10 -04:00
Tim Graham
5fa4f40f45
Fixed #29227 -- Allowed BooleanField to be null=True.
...
Thanks Lynn Cyrin for contributing to the patch, and Nick Pope for review.
2018-03-20 12:10:10 -04:00
Peter Inglesby
73f7d1755f
Extracted deserialize fk/m2m functions from Deserializer.
...
In preparation for handling forward references (refs #26291 ).
2018-03-20 12:07:39 -04:00
Astral
a0c03c62a8
Fixed #29229 -- Fixed column mismatch crash when combining two annotated values_list() querysets with union(), difference(), or intersection().
...
Regression in 7316720603821ebb64dfe8fa592ba6edcef5f3e.
2018-03-19 21:05:43 -04:00
Mariusz Felisiak
cede5111bb
Refs #28643 -- Added LPad and RPad database functions.
...
Thanks Tim Graham for the review.
2018-03-19 17:35:16 +01:00
Hasan Ramezani
274e3e27f3
Fixed #29184 -- Made TabularInline respect model form's Meta.labels and help_texts.
2018-03-17 20:51:24 -04:00
Claude Paroz
3c4ff21763
Fixed #29103 -- Removed bad 'b'-prefix added by MySQL's SchemaEditor.quote_value().
2018-03-17 16:36:54 -04:00
Mads Jensen
77609f922e
Removed unused args in Index.clone().
2018-03-17 15:42:09 -04:00
Tim Graham
f8b98f0edc
Removed DatabaseFeatures.can_introspect_null.
...
The only known usage is in the unmaintained django-pymssql project.
2018-03-16 11:43:41 -04:00
Mariusz Felisiak
362813d628
Fixed hanging indentation in various code.
2018-03-16 10:54:34 +01:00
Mattia Procopio
aeb8c38178
Fixed #29206 -- Fixed PasswordResetConfirmView crash when the URL contains a non-UUID where one is expected.
2018-03-15 21:33:15 -04:00
Josh Schneier
b60e5fdbb7
Fixed #28959 -- Fixed 'No, take me back' button on admin's inline popup.
2018-03-15 20:47:18 -04:00
Mariusz Felisiak
9421aee35e
Refs #28643 -- Added LTrim, RTrim, and Trim database functions.
...
Thanks Tim Graham and Mads Jensen for reviews.
2018-03-15 20:57:23 +01:00
David Sanders
47bb3b68ff
Fixed #29219 -- Made admin filters use processed params rather than request.GET.
2018-03-15 11:33:19 -04:00
Artem Tabolin
a2f7433adc
Fixed #29221 -- Corrected admin's autocomplete widget to add a space after custom classes.
2018-03-15 10:55:34 -04:00
Tim Graham
87dc0844a6
Fixed #29200 -- Fixed label rendering when using RadioSelect and CheckboxSelectMultiple with MultiWidget.
2018-03-15 09:10:23 -04:00
Mariusz Felisiak
feb683c4c2
Fixed #29155 -- Fixed crash when database functions are used with pattern lookups.
...
Thanks Tim Graham and Sergey Fedoseev for reviews.
2018-03-14 10:00:07 +01:00
Hajime Nakagami
8f75984c26
Quoted field names in cache db backend SQL.
...
On Firebird, 'value' is a reserved word and must be quoted.
2018-03-13 22:46:41 -04:00
Mariusz Felisiak
acfc650f2a
Fixed #29199 -- Fixed crash when database user password contains @ sign on Oracle.
...
Thanks Shane Allgeier for the report and Tim Graham for the review.
2018-03-13 19:06:40 +01:00
dzhuang
e17088a108
Fixed #29213 -- Fixed autocomplete widget's translations for zh-hans/zh-hant.
2018-03-13 10:58:34 -04:00
robwa
4ab027b944
Fixed #28988 -- Fixed queries when a GenericRelation is used with multi-table inheritance.
2018-03-12 22:42:48 -04:00
Alejandro Sánchez
b639bcc250
Changed es_MX's THOUSAND_SEPARATOR to a comma.
2018-03-12 22:07:54 -04:00
Sergey Fedoseev
d696fccae6
Fixed #29209 -- Fixed Cast() with TextField on MySQL and Oracle.
2018-03-12 21:57:14 -04:00
Tomer Chachamu
c12745f682
Fixed typo in django/db/backends/base/schema.py.
2018-03-12 13:49:36 -04:00
Simon Charette
3c71fb3909
Added PatternLookup.prepare_rhs to simplify subclasses.
2018-03-12 12:12:46 -04:00
Дилян Палаузов
45aaf6608d
Removed unused variable in BaseDatabaseSchemaEditor.effective_default().
2018-03-12 12:06:06 -04:00
Sergey Fedoseev
e17776e2cd
Removed redundant UploadedFile.DEFAULT_CHUNK_SIZE.
...
The same value is inherited from File.
2018-03-12 09:12:44 -04:00
Sergey Fedoseev
a5406fe989
Used cached_property for File.size.
2018-03-10 17:21:39 +05:00
Carlton Gibson
5b083a824e
Fixed #29180 -- Fixed a regression where migrations already in the plan were readded.
...
Regression in a38ae914d8
.
2018-03-09 08:59:57 +01:00
Carlton Gibson
4d420a53cf
Refs #29180 -- Added MigrationGraph._generate_plan() for testing.
2018-03-09 08:59:57 +01:00
Alex Stovbur
2d9ec4d735
Fixed #29188 -- Fixed ContentFile.size after a write().
2018-03-08 14:07:29 -05:00
Simon Charette
277ed07209
Fixed #29195 -- Fixed Exists.output_field resolution on single-valued queries.
...
The Subquery class which Exists inherits from defaulted to using single-valued
querie's field if no output_field was explicitly specified on initialization
which was bypassing the Exists.output_field defined at the class level.
Moving Subquery's dynamic output_field resolution to _resolve_output_field
should make sure the fallback logic is only performed if required.
Regression in 08654a99bb
.
Thanks Oli Warner for the detailed report.
2018-03-08 13:30:41 -05:00
Fabrizio Ettore Messina
10c0fe528a
Fixed #29178 -- Allowed Index.fields to accept a tuple.
2018-03-08 10:56:55 -05:00
Mariusz Felisiak
8b25d546b6
Simplified Contains, StartsWith, and EndsWith lookups.
2018-03-07 14:04:17 -05:00
Tim Graham
97b7dd59bb
Fixed CVE-2018-7537 -- Fixed catastrophic backtracking in django.utils.text.Truncator.
...
Thanks James Davis for suggesting the fix.
2018-03-06 08:30:40 -05:00
Tim Graham
8618271caa
Fixed CVE-2018-7536 -- Fixed catastrophic backtracking in urlize and urlizetrunc template filters.
...
Thanks Florian Apolloner for assisting with the patch.
2018-03-06 08:30:40 -05:00
Alex Stovbur
d171843f57
Fixed #28981 -- Added an exception if GeoIP database can't be loaded from the path.
2018-03-05 12:20:30 -05:00
ovalseven8
821e304cc4
Corrected User model docstring about required fields.
...
Follow up to 841a87785a
.
2018-03-04 15:24:36 -05:00
Sergey Fedoseev
4ff29a53e6
Refs #17476 -- Removed obsolete simplification of timezone names in cache key generation.
2018-03-03 14:56:39 -05:00
Daniel Hahler
683341db43
Condensed some widgets code.
2018-03-03 13:35:09 -05:00
Almad
3d8fadad0f
Added model name to AutoField error message.
2018-03-03 13:22:00 -05:00
Patryk Zawadzki
a20aae414e
Fixed #29144 -- Made untranslated strings for territorial language variants use translations from the generic language variant.
2018-03-03 12:08:24 -05:00
Alex Tomic
a1a3e51561
Fixed #29133 -- Fixed call_command() crash if a required option is passed in options.
2018-03-02 12:25:08 -05:00
Christophe Mehay
40bac28faa
Fixed #29176 -- Fixed AbstractBaseUser.normalize_username() crash if username isn't a string.
2018-03-02 11:32:53 -05:00
François Freitag
a2e97abd81
Fixed #29159 -- Made ModelChoiceIterator reuse QuerySet result cache.
...
When __len__() is called (e.g. when casting to list or tuple), the
QuerySet is evaluated and the result cache populated. iterator()
shouldn't be called on the QuerySet after that, as it would reset the
result cache and trigger a second query.
2018-03-01 14:17:56 -05:00
François Freitag
40f0aa9885
Fixed #29158 -- Fixed len(choices) crash if ModelChoiceField's queryset is a manager.
...
Removing all() in __iter__() prevents a duplicate query when choices are
cast to a list and there's a prefetch_related().
2018-03-01 14:12:14 -05:00
Carlton Gibson
94a180402c
Refs #27728 -- Fixed thread safety of admin template tags.
...
Regression in 5cc28dc752
.
2018-03-01 11:45:08 -05:00
Tim Graham
4c02e3cda3
Refs #27728 -- Made cosmetic edits to admin template tag template overriding.
2018-03-01 11:45:08 -05:00
Tomáš Ehrlich
fa352626c2
Fixed #29172 -- Fixed crash with Window expression in a subquery.
2018-03-01 10:24:14 -05:00
Sergey Fedoseev
ba4a986240
Refs #28459 -- Improved performance of time difference expressions on MySQL.
2018-03-01 14:42:21 +05:00
Claude Paroz
75527c0f83
Updated translations from Transifex
...
Forward port of 2126e9317e
from stable/2.0.x.
2018-02-28 20:06:52 +01:00
Mariusz Felisiak
54f80430be
Fixed #29166 -- Fixed crash in When() expression with a list argument.
...
Thanks Matthew Pava for the report and Tim Graham and Carlton Gibson for
reviews.
Regression in 19b2dfd1bf
.
2018-02-28 18:05:23 +01:00
Raffaele Salmaso
5cc28dc752
Fixed #27728 -- Allowed overriding admin templatetags templates.
2018-02-28 08:49:40 +01:00
Tim Graham
56a302f338
Fixed #29141 -- Corrected BCryptPasswordHasher's docstring about truncation.
2018-02-26 14:07:38 -05:00
Mariusz Felisiak
074a2f7f58
Refs #28909 -- Simplifed code using unpacking generalizations.
2018-02-26 18:23:31 +01:00
Tim Graham
5b589a47b9
Fixed #29161 -- Removed BCryptPasswordHasher from PASSWORD_HASHERS.
2018-02-26 09:05:18 -05:00
Mariusz Felisiak
61596f40ad
Removed unnecessary setdefault() from CheckRegistry.register().
2018-02-26 08:54:55 -05:00
Becky Smith
8116e588db
Fixed #17962 -- Added ModelAdmin.get_deleted_objects().
2018-02-24 20:41:43 -05:00
Tim Graham
9822d88ca0
Removed using argument from admin's get_deleted_objects().
2018-02-24 09:21:13 -05:00
a8568730
ba37ee9ef8
Fixed #28635 -- Fixed admin's preserved filters if the URL contains non-ASCII characters.
2018-02-23 15:40:11 -05:00
Sebastian Sangervasi
7905815510
Fixed #27449 -- Added django.utils.translation.get_supported_language_variant().
2018-02-23 14:49:00 -05:00
Hasan Ramezani
5033999153
Fixed #29154 -- Corrected examples in pluralize docstring and added tests.
2018-02-23 14:20:00 -05:00
bobort
f82de6bfb1
Refs #28643 -- Added Ord, Chr, Left, and Right database functions.
2018-02-23 10:23:22 -05:00
Matthew Schinckel
c412926a2e
Fixed #29142 -- Fixed crash when OuterRef is used with an operator.
2018-02-23 09:38:16 -05:00
Tim Graham
16436f3751
Removed unused opts argument from admin's get_deleted_objects().
...
Unused since e12b3199d0
.
2018-02-21 13:32:13 -05:00
Mikhail Porokhovnichenko
14e34dcf8c
Fixed #29132 -- Avoided connecting update_last_login() handler if User.last_login isn't a field.
2018-02-21 10:36:31 -05:00
Sebastian Sangervasi
5c4c87e55c
Changed "language-code" to the more commonly used "language code".
2018-02-21 09:31:05 -05:00
Tom Forbes
33ac036a6b
Fixed #28398 -- Added suggestions for mistyped management commands.
2018-02-21 09:00:49 -05:00
Oliver Sauder
6f0b8c1c9e
Fixed #28442 -- Fixed crash with nested OuterRefs that reference AutoField.
2018-02-20 21:58:43 -05:00
Chillar Anand
e8e0cfa9e5
Fixed #28755 -- Made check_for_language() include apps' locale directories.
2018-02-20 21:34:40 -05:00
Douwe Osinga
195610227d
Updated project template to use single quotes where appropriate.
2018-02-20 18:52:28 -05:00
Williams Mendez
2691ed7ba1
Fixed #29140 -- Fixed EmailMessage crash when body is None.
2018-02-20 09:34:01 -05:00
dizballanze
eb002e7892
Fixed #29135 -- Prevented get_object/list_or_404() from hiding AttributeError raised by QuerySet filtering.
2018-02-19 10:51:15 -05:00
Dylan Verheul
9b1125bfc7
Fixed #28379 -- Made AccessMixin raise Permissiondenied for authenticated users.
2018-02-16 13:58:55 -05:00
Andreas Pelme
e307ff29d2
Fixed #27810 -- Allowed query expressions in admin_order_field.
2018-02-15 21:00:31 -05:00
Herbert Parentes Fortes Neto
d368784bac
Fixed #28171 -- Added an exception if Form's empty_permitted and use_required_attribute arguments conflict.
2018-02-15 13:44:26 -05:00
Tomer Chachamu
7ec0fdf62a
Fixed #28693 -- Fixed crash in CsrfViewMiddleware when an HTTPS request has an invalid host.
2018-02-14 20:24:01 -05:00
Haki Benita
ff5517988a
Fixed #28933 -- Improved the efficiency of ModelAdmin.date_hierarchy queries.
2018-02-14 19:15:41 -05:00
Tim Graham
fe99fb860f
Removed AuthenticationForm.get_user_id().
...
Unused since aab3a418ac
.
2018-02-14 19:09:06 -05:00
Tim Graham
f5c9bbd3e3
Made cosmetic edits to contrib.admin.filters.
2018-02-14 13:40:24 -05:00
Haki Benita
2014db50f4
Removed redundant filtering in date_hierarchy template tag.
...
cl.queryset is already filtered by the current selections.
2018-02-13 14:12:40 -05:00
Sanyam Khurana
5a669ae2f4
Fixed #29106 -- Made DiscoverRunner display selected test tags.
2018-02-13 12:56:31 -05:00
Denys Duchier
cb7860cced
Fixed #24607 -- Serialized natural keys in multi-table inheritance models.
...
Thanks João Paulo Melo de Sampaio for the test.
2018-02-12 21:15:04 -05:00
Tim Graham
9ba3df8240
Refs #29125 -- Made Q.deconstruct() omit 'query_utils' in the path and _connector='AND' since it's a default value.
2018-02-12 15:23:41 -05:00
Tim Graham
b95c49c954
Fixed #29125 -- Made Q.deconstruct() deterministic with multiple keyword arguments.
2018-02-12 14:52:32 -05:00
Tim Graham
b8a41a2872
Refs #27795 -- Removed force_bytes() in django.test.client where possible.
2018-02-12 11:03:11 -05:00
Stanislav Karpov
6d794fb762
Fixed #28960 -- Added GEOSGeometry.buffer_with_style().
2018-02-10 19:45:58 -05:00
Matthew Wilkes
2162f0983d
Fixed #24747 -- Allowed transforms in QuerySet.order_by() and distinct(*fields).
2018-02-10 19:08:55 -05:00
Raphael Gaschignard
bf26f66029
Fixed #29118 -- Fixed crash with QuerySet.order_by(Exists(...)).
2018-02-10 18:35:57 -05:00
Manatsawin Hanmongkolchai
1a1264f149
Fixed #29109 -- Fixed the admin time picker widget for the Thai locale.
2018-02-10 16:05:41 -05:00
Jon Dufresne
919d59811f
Refs #27795 -- Removed force_text() usage in django/test/testcases.py.
2018-02-10 11:44:39 -05:00
Jon Dufresne
1f3852b708
Refs #27795 -- Removed force_bytes() usage in django/template/loaders/cached.py.
2018-02-10 11:25:47 -05:00
Jon Dufresne
968329b5c2
Refs #27795 -- Replaced force_text() calls with str() in django.utils.html.
2018-02-09 16:47:45 -08:00
Simon Charette
d61fe24601
Fixed #29108 -- Fixed crash in aggregation of distinct+ordered+sliced querysets.
...
Regression in 4acae21846
.
Thanks Stephen Brooks for the report.
2018-02-08 09:59:25 -05:00
Jonas Haag
8c709d79cb
Fixed #17419 -- Added json_tag template filter.
2018-02-07 18:38:12 -05:00
Alexander Gaevsky
ef2512b2ff
Fixed #25790 -- Allowed disable column sorting in the admin changelist.
...
Thanks Ramiro Morales for completing the patch.
2018-02-07 17:46:28 -05:00
Tim Graham
7d96f0c49a
Refs #27795 -- Replaced force_bytes() usage in django.http.
2018-02-07 14:28:15 -05:00
Asif Saifuddin Auvi
b38532cd6b
Refs #27795 -- Replaced force_bytes() usage in django.core.signing.
2018-02-07 12:47:34 -05:00
Mariusz Felisiak
34b52f8572
Renamed the allow_sliced_subqueries database feature to allow_sliced_subqueries_with_in.
...
After 0899d583bd
this database feature is
false only on MySQL which doesn't support sliced subqueries only with
IN/ALL/ANY/SOME.
2018-02-07 08:27:47 +01:00
Nick Sarbicki
47268242b0
Fixed #29082 -- Allowed the test client to encode JSON request data.
2018-02-06 18:29:04 -05:00
shanghui
d968788b57
Fixed #28833 -- Prevented CacheMiddleware from caching responses with "Cache-Control: private".
2018-02-06 09:42:05 -05:00
Tom
272f685794
Fixed #27999 -- Added test client support for HTTP 307 and 308 redirects.
2018-02-06 09:03:43 -05:00
Tim Graham
0f0a07ac27
Refs #28814 -- Fixed migrations crash with namespace packages on Python 3.7.
...
Due to https://bugs.python.org/issue32303 .
2018-02-05 13:29:32 -05:00
Raymond Hettinger
aba9763b51
Refs #28814 -- Imported from collections.abc to fix Python 3.7 deprecation warnings.
...
https://bugs.python.org/issue25988
2018-02-05 11:42:47 -05:00
Jon Dufresne
8b21878357
Refs #28723 -- Fixed stale prefetch_related cache after add/remove.
...
Regression in 514b2c989a
.
2018-02-05 11:02:57 -05:00
Tim Graham
16ee53d7bb
Fixed #29113 -- Simplified django.forms.formsets.all_valid() and clarified docstring.
2018-02-05 10:29:38 -05:00
Raffaele Salmaso
da3df5b878
Fixed #8500 -- Allowed overriding the default admin site instance.
2018-02-03 18:51:10 -05:00
Tim Graham
d0a42a14c0
Fixed imports per isort 4.3.1.
...
Partially reverted 9bcf73d788
.
2018-02-02 14:44:07 -05:00
Jon Dufresne
6a039800db
Refs #27795 -- Replaced force_bytes() usage in django.core.cache.
2018-02-02 08:57:58 +01:00
Jon Dufresne
16c5a334ff
Refs #27795 -- Replaced force_text/bytes() with decode()/encode() in password hashers.
2018-02-01 12:36:21 -05:00
Tim Graham
af33fb250e
Fixed CVE-2018-6188 -- Fixed information leakage in AuthenticationForm.
...
Reverted 359370a8b8
(refs #28645 ).
This is a security fix.
2018-02-01 09:05:14 -05:00
Tim Graham
552abffab1
Fixed #29094 -- Fixed crash when entering an invalid uuid in ModelAdmin.raw_id_fields.
...
Regression in 2f9861d823
.
Thanks Carel Burger for the report and fix.
2018-02-01 08:36:36 -05:00
Mariusz Felisiak
9bcf73d788
Fixed imports per isort 4.3.0.
2018-02-01 09:29:46 +01:00
danieltatraivertis
9cd313fc2e
Fixed #29090 -- Updated Hungarian time formats to use ':' instead of '.'.
2018-01-31 20:03:27 -05:00
Mariusz Felisiak
f73f821143
Removed uneeded comment in DatabaseWrapper.check_constraints() on SQLite/MySQL backends.
2018-01-31 20:02:45 -05:00
priyanshsaxena
617d5f410f
Fixed #29066 -- Allowed negating query expressions.
2018-01-31 10:54:19 -05:00
Jon Dufresne
6b2f8fb91c
Refs #27795 -- Replaced force_text() usage in django.core.management.
...
Use decode() since Popen.communicate() always returns bytes.
2018-01-31 10:35:08 -05:00
Дилян Палаузов
f427ffcccb
Fixed #29093 -- Simplified a few lines in ModelBase.__new__().
2018-01-31 10:22:56 -05:00
Jon Dufresne
8f14ed6c81
Removed unused os_err_exc_type kwarg from core.management.utils.popen_wrapper().
...
Unused since its introduction in 7fca4416c7
.
2018-01-31 10:02:01 -05:00
Tim Graham
0a37ea56d0
Fixed #29091 -- Fixed makemigrations crash if migrations directory doesn't have __init__.py.
...
Regression in aadd3aeb2b
.
2018-01-31 09:36:36 -05:00
Vlastimil Zíma
fbc3c29e7c
Fixed #29036 -- Fixed HTML5 required validation on SelectDateWidget if the attribute is added by JavaScript.
...
Thanks Tim Graham for the initial patch.
2018-01-30 19:09:31 -05:00
Tim Graham
5538729e4e
Fixed #29089 -- Avoided redundant date parsing in SelectDateWidget.format_value().
2018-01-30 18:11:05 -05:00
Jon Dufresne
136bf5c214
Fixed #29076 -- Made Model.refresh_from_db() clear cached relationships even if the related id doesn't change.
2018-01-30 10:43:53 -05:00
Collin Anderson
46b3e3ffdc
Fixed #29065 -- Made django.core.validators only load Pillow if needed.
2018-01-30 09:42:23 -05:00
bquinn
c2b969e124
Fixed #29004 -- Added inspectdb --include-views option.
2018-01-27 18:51:40 -05:00
Tim Graham
92f48680db
Expanded docs for AbstractBaseUser.has_usable_password().
2018-01-27 11:03:41 -05:00
Sigurd Ljødal
a455e732a0
Fixed #28650 -- Added TruncWeek database function.
2018-01-27 09:59:13 -05:00
François Freitag
3aa9ab39cc
Refs #28748 -- Reallowed lazy values in model field choices.
...
Regression in f9844f4841
.
Thanks Matthias Kestenholz for the report and suggestions.
2018-01-27 09:19:56 -05:00
Mariusz Felisiak
b002a032f9
Fixed #29054 -- Fixed a regression where a queryset that annotates with geometry objects crashes.
...
Made GEOSGeometryBase hashable.
Regression in 19b2dfd1bf
.
Thanks Tim Graham for the review.
2018-01-27 11:12:11 +01:00
Jon Dufresne
3187c89d6f
Fixed #29067 -- Fixed regression in QuerySet.values_list(..., flat=True) followed by annotate().
2018-01-26 09:35:50 -05:00
Roger Gammans
d0b44c44ef
Fixed #29060 -- Made {% firstof %} assign '' to the asvar if all inputs are false.
2018-01-25 13:40:51 -05:00
shanghui
8dc675d90f
Fixed #28838 -- Fixed Model.save() crash if the base manager annotates with a related field.
2018-01-25 10:12:04 -05:00
Grant Jenks
d38a3169a4
Fixed #28977 -- Changed local-memory cache to use LRU culling.
...
LRU culling turns every read into a kind of write to the cache: cache keys
are moved to the first position in the OrderedDict when they are retrieved.
The RWLock which permitted multiple readers while prioritizing a single
writer is obsolete since all accesses are now writes.
2018-01-24 12:26:19 -05:00
François Freitag
f9844f4841
Fixed #28748 -- Made model field choices check more strict for named groups.
2018-01-24 10:34:24 -05:00
Jon Dufresne
7d607127e3
Refs #21221 -- Deprecated staticfiles and admin_static template tag libraries.
2018-01-23 10:30:10 -05:00
Jon Dufresne
ff05de760c
Fixed #29038 -- Removed closing slash from HTML void tags.
2018-01-21 02:09:10 -05:00
Tim Graham
a22ef3bb37
Removed library name from file names of admin's JavaScript library licenses.
2018-01-20 12:30:00 -05:00
Jon Dufresne
47d238b696
Fixed #29041 -- Changed SelectMultiple's multiple attribute to HTML5 boolean syntax.
2018-01-20 11:19:06 -05:00
Jon Dufresne
90ca9412e4
Removed unnecessary microsecond truncation in SplitDateTimeWidget.
...
The microseconds are already truncated by the TimeInput subwidget.
2018-01-18 11:23:06 -05:00
Jon Dufresne
3c34452ab5
Refs #23668 -- Removed passing default argument of current TZ to make_aware()/naive.
2018-01-18 11:21:12 -05:00
Mads Jensen
65728550bd
Refs #28643 -- Added Replace database function.
2018-01-17 20:46:15 -05:00
Vincent Poulailleau
fcd431c6c3
Improved generic detail view error message for when pk or slug is missing.
2018-01-17 10:58:05 -05:00
hayashi
27557a7a99
Fixed #28857 -- Fixed invalid SQL when using Cast with complex expressions on PostgreSQL.
2018-01-17 09:28:03 -05:00
Tim Martin
02365d3f38
Fixed #28542 -- Fixed deletion of primary key constraint if the new field is unique.
2018-01-13 20:11:55 -05:00
Étienne Loks
9a621edf62
Fixed #29016 -- Fixed incorrect foreign key nullification on related instance deletion.
2018-01-13 10:31:00 -05:00
Himanshu Chauhan
1b753b2d60
Fixed #28885 -- Fixed hidden content at the bottom of the "The install worked successfully!" page for some languages.
2018-01-12 19:09:54 -05:00
Mariusz Felisiak
385e6fb352
Removed Query.split_exclude()'s unused prefix argument.
...
Unused since b4492a8ca4
.
2018-01-12 19:06:15 -05:00
Дилян Палаузов
a38ae914d8
Fixed #28996 -- Simplified some boolean constructs and removed trivial continue statements.
2018-01-12 12:44:50 -05:00
Nick Pope
1f0813ca7e
Fixed string format specifier for fillfactor in GistIndex.
2018-01-12 08:49:26 -05:00
Jon Dufresne
1e81a4b897
Fixed #28638 -- Made allowed_hosts a required argument of is_safe_url().
2018-01-11 07:03:50 -05:00
Sergey Fedoseev
1dce629c03
Refs #29006 -- Simplified handling of SNaN values in DecimalField.validate().
2018-01-11 07:02:46 -05:00
Fabio Bonelli
f636f0bb86
Fixed #29007 -- Fixed DecimalValidator crash on NaN, SNan, Inf, and Infinity values.
2018-01-10 21:43:32 -05:00
Fabio Bonelli
c886f3dee3
Fixed #29006 -- Fixed DecimalField.clean() crash on sNaN values.
2018-01-10 20:30:44 -05:00
Tim Graham
db9cd1b37e
Unified construction of WITH SQL in contrib.postgres.indexes.
2018-01-10 14:59:15 -05:00
George-Cristian Bîrzan
5bf62825b5
Fixed #28828 -- Improved performance of HttpRequest.build_absolute_uri().
2018-01-10 14:05:10 -05:00
Tim Graham
d60e8b856b
Added DatabaseFeatures.is_postgresql_9_5 to avoid repetition.
2018-01-09 14:09:02 -05:00
Nick Pope
d95f1e711b
Allowed indexes in contrib.postgres to have suffixes of any length.
2018-01-09 13:33:53 -05:00
Will Ayd
09530e61a0
Fixed #28869 -- Made tagged test classes and methods inherit tags from parents.
2018-01-08 20:57:33 -05:00
Srinivas Reddy Thatiparthy
acd3baf2ae
Improved readability of utils.datetime_safe._findall().
2018-01-08 14:49:43 -05:00
Alvin Lindstam
47a99d7012
Fixed #28989 -- Fixed HttpResponse.delete_cookie() for cookies that use __Secure/Host prefixes.
2018-01-08 12:32:47 -05:00
Sergey Fedoseev
762bd34c36
Fixed #28842 -- Added SpatiaLite support for ForcePolygonCW function.
2018-01-06 19:24:44 -05:00
Mariusz Felisiak
8f8a93a9ae
Fixed #28859 -- Made Oracle backend raise DatabaseError if "no data found" exception is hidden by the Oracle OCI library.
...
Thanks Tim Graham for the review and Jani Tiainen for the report.
2018-01-06 18:50:54 +01:00
Vasilis Aggelou
777f216d55
Fixed #15522 -- Added ModelAdmin.delete_queryset() to customize "delete selected objects" deletion.
2018-01-05 18:28:45 -05:00