Дилян Палаузов
d2afa5eb23
Fixed #28860 -- Removed unnecessary len() calls.
2017-12-04 10:35:23 -05:00
Claude Paroz
4f5526e346
Fixed #28773 -- Forced pot files to use UNIX-style newlines
...
Thanks Hendy Irawan for the analysis and report.
2017-11-28 08:52:37 +01:00
Дилян Палаузов
c69e4bc691
Fixed #28769 -- Replaced 'x if x else y' with 'x or y'.
2017-11-07 09:08:46 -05:00
Дилян Палаузов
6c0042430e
Fixed #28776 -- Fixed a/an/and typos in docs and comments.
2017-11-06 22:41:03 -05:00
Adam Johnson
acc989f037
Fixed #28760 -- Removed DummyCache's unnecessary get/set/delete_many().
2017-10-31 12:16:09 -04:00
Adam Johnson
abacd09f07
Refs #27318 -- Made DummyCache.set_many() return a list for consistency with other backends.
2017-10-30 12:13:17 -04:00
Tim Graham
7fb913c805
Removed Python 2 comment in ValidationError.
2017-10-23 08:56:41 -04:00
Mariusz Felisiak
0f722d865e
Removed redundant inner imports.
2017-10-20 18:30:41 -04:00
Daniel Tao
4d60261b2a
Fixed #28601 -- Prevented cache.get_or_set() from caching None if default is a callable that returns None.
2017-10-10 09:20:34 -04:00
Mariusz Felisiak
d896809a3a
Refs #23919 -- Removed unneeded float()/int() calls.
2017-10-02 08:49:26 -04:00
Josh Schneier
e8c4596329
Fixed #28562 -- Fixed DecimalValidator handling of positive exponent scientific notation.
2017-09-27 09:42:04 -04:00
Tim Graham
e47b56d791
Refs #20892 -- Removed support for passing pylibmc behavior settings as top-level attributes of CACHES['OPTIONS'].
...
Per deprecation timeline.
2017-09-22 12:51:17 -04:00
Sjoerd Job Postmus
df41b5a05d
Fixed #28593 -- Added a simplified URL routing syntax per DEP 0201.
...
Thanks Aymeric Augustin for shepherding the DEP and patch review.
Thanks Marten Kenbeek and Tim Graham for contributing to the code.
Thanks Tom Christie, Shai Berger, and Tim Graham for the docs.
2017-09-20 18:04:42 -04:00
Mariusz Felisiak
0ec0e5029c
Removed unnecessary parens in various code.
2017-09-13 21:20:29 -04:00
Tom
ac756f16c5
Fixed #28440 -- Fixed WSGIServer hang on responses without a Content-Length.
...
Disabled keep-alive to fix the regression in
e6065c7b83
.
2017-09-12 10:41:28 -04:00
Tim Graham
6e4c6281db
Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."
...
This reverts commit 550cb3a365
because try/except performs better.
2017-09-07 08:16:21 -04:00
Sergey Fedoseev
8b2515a450
Removed unneeded __init__() methods.
2017-09-07 08:10:49 -04:00
Olivier Tabone
a027447f56
Fixed #27318 -- Made cache.set_many() return the list of failed keys.
2017-09-06 14:38:44 -04:00
Sami J. Lehtinen
407c1249c9
Fixed #28032 -- Added Paginator.get_page().
...
Moved boilerplate from docs to a method.
2017-09-06 14:17:19 -04:00
Sergey Fedoseev
3633c2a045
Used dict comprehensions in BaseMemcachedCache.get_many() and set_many() for better readability.
2017-09-05 09:14:41 -04:00
Igor Tokarev
af35c69a3c
Fixed #26344 -- Made EmailMessage include alternatives when the body is empty and it has attachments.
2017-09-04 08:46:11 -04:00
caleb logan
68f0e8d8b1
Fixed #28500 -- Fixed crash in FileBasedCache._is_expired() if the cache file is empty.
2017-09-03 20:11:49 -04:00
Nick Pope
ec6481246a
Fixed #28524 -- Fixed program name in management commands when using 'python -m django'.
2017-08-31 09:22:25 -04:00
Sergey Fedoseev
481ba33cd2
Used sets for CheckRegistry.registered_checks and deployment_checks.
2017-08-24 10:37:50 -04:00
Sergey Fedoseev
fac74b84a3
Used OrderedDict.fromkeys() to initialize OrderedDict with None values.
2017-08-23 11:40:17 -04:00
Sergey Fedoseev
30eb92fc11
Removed need for hasattr(check, 'tags') in CheckRegistry.
...
It was needed to pass tests because registered checks weren't properly mocked.
2017-08-21 15:34:20 -04:00
Alejandro Zamora
90d7b912b9
Fixed #28201 -- Added ProhibitNullCharactersValidator and used it on CharField form field.
2017-08-12 20:14:14 -04:00
Raúl Pedro Fernandes Santos
7104e051c1
Fixed argument name in call_command() docstring.
...
Follow up to 8f6a1a1551
.
2017-08-09 18:05:05 -04:00
Sergey Fedoseev
38988f289f
Avoided creation of temporary sets.
2017-07-29 10:16:43 -04:00
Melvyn Sopacua
5bb9b9a388
Fixed #28363 -- Allowed naming the migration generated by squashmigrations.
2017-07-26 13:47:35 -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
Tim Graham
2e9ada1551
Fixed #28397 -- Removed django.core.exceptions.DjangoRuntimeWarning.
2017-07-14 12:06:06 -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
Peter Inglesby
0ba57c3957
Fixed #27670 -- Prevented shell crash on error in .pythonrc.
2017-07-06 07:50:22 -04:00
Mads Jensen
550cb3a365
Fixed #27818 -- Replaced try/except/pass with contextlib.suppress().
2017-06-28 14:07:55 -04:00
Georg Sauthoff
d0f59054d0
Fixed #28324 -- Made feedgenerators write feeds with deterministically ordered attributes.
2017-06-20 05:38:41 -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
Chandrakant Kumar
2b09e4c88e
Fixed #27787 -- Made call_command() validate the options it receives.
2017-06-16 21:28:38 -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
Arne de Laat
681d2599ee
Fixed #28165 -- Ignored case in FileExtensionValidator's allowed_extensions.
2017-06-07 16:53:36 -04:00
Tim Graham
5a52d932ef
Replaced Model._get_pk_val() with pk property.
...
Model.pk was added after _get_pk_val() and many places weren't simplified.
2017-06-05 15:20:34 -04:00
Claude Paroz
6352d06cd0
Fixed #26651 -- Kept original file suffix in TemporaryUploadedFile name
...
Thanks Tim Graham for the review.
2017-06-05 18:55:44 +02:00
Claude Paroz
45bbb9aae0
Refs #27795 -- Removed force_text() usage in serialization framework
2017-06-05 18:33:45 +02:00
Jon Dufresne
2c69824e5a
Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.
2017-06-01 19:08:59 -04:00
Tim Graham
cde31daf88
Sorted imports per isort 4.2.9.
2017-06-01 13:23:48 -04:00
Derrick Jackson
789c290150
Fixed #28170 -- Fixed file_move_safe() crash when moving files to a CIFS mount.
2017-05-31 14:52:40 -04:00
Adam Johnson
c61d1361d0
DRY'd startapp and startproject management commands.
2017-05-30 10:30:32 -04:00
Jon Dufresne
21046e7773
Fixed #28249 -- Removed unnecessary dict.keys() calls.
...
iter(dict) is equivalent to iter(dict.keys()).
2017-05-27 19:08:46 -04:00
Tom
94475aab80
Replaced some map() and filter() calls with generators.
2017-05-27 13:58:56 -04:00
Chris Lamb
2f09a28558
Fixed #27881 -- Added diffsettings --output option.
...
Thanks Haris Ibrahim K. V. for writng docs.
2017-05-27 09:00:06 -04:00