Commit Graph

12346 Commits

Author SHA1 Message Date
Jarek Glowacki e625859f08 [1.8.x] Corrected a few typos in Signal.send() docstring.
Backport of c68ce18712 from master
2016-01-12 08:28:00 -05:00
Matt Robenolt 6011d3a156 [1.8.x] Fixed a typo in BCryptPasswordHasher docstring
There is no BCryptSHA512PasswordHasher.

Backport of 8048411c97 from master
2016-01-09 13:35:06 -05:00
Alexander Gaevsky caeacd94dd [1.8.x] Refs #24980 -- Fixed incorrect timezone handling in admin calendar widget.
Backport of ea7542891a from master
2016-01-08 17:26:33 -05:00
Tim Graham f8c3d38c2d [1.8.x] Fixed #26034 -- Fixed incorrect index handling on PostgreSQL on Char/TextField with unique=True and db_index=True.
Thanks Simon Charette for review.

Backport of 56aaae58a7 from master
2016-01-08 14:47:05 -05:00
Alexander Gaevsky 40601e5797 [1.8.x] Fixed #24980 -- Fixed day determination in admin calendar widget.
Backport of 44930cc466 from master
2016-01-07 19:15:57 +03:00
Claude Paroz 61437dd0a0 [1.8.x] Fixed #26046 -- Fixed a crash with translations and Django-unknown language code
Thanks Jens Lundstrom for the report and Tim Graham for the review.
Backport of 632a9f21bc from master.
2016-01-06 20:34:45 +01:00
Scott Pashley 7688089e0f [1.8.x] Fixed #26035 -- Prevented user-tools from appearing on admin logout page.
Backport of 7cc2efc2d6 from master
2016-01-06 14:00:52 -05:00
Tim Graham 4164a4e166 [1.8.x] Post-release version bump. 2016-01-02 09:11:57 -05:00
Tim Graham a1f5bafac5 [1.8.8] Bumped version for 1.8.8 release. 2016-01-02 08:52:10 -05:00
varunnaganathan f6b4893a9f [1.8.x] Fixed #25316 -- Fixed a crash with order_by() and values() after annotate().
Backport of 3eba9638ee from master
2016-01-02 08:20:07 -05:00
Anssi Kääriäinen 1261c49690 [1.8.x] Fixed #23372 -- Made loaddata faster if it doesn't find any fixtures.
Django's test suite often tries to load fixture files from apps that have
no fixtures at all. This creates a lot of unnecessary disabling and
enabling of constraints which can be expensive on some database.

To speed this up, loaddata now first checks if any fixture file matches.
If no fixture file is matched, then the command exits before disabling
and enabling of constraints is done.

The main benefit of this change is seen on MSSQL, where tests on
Django 1.8 run hours faster.

Backport of ee9f4686b1 from master
2015-12-31 09:20:00 -05:00
Matthew Madurski cef1bc87f9 [1.8.x] Fixed typo in BaseCache.delete_many() docstring.
Backport of 7df9aa3a33 from master
2015-12-29 20:50:36 -05:00
Alexander Gaevsky 83174866ac [1.8.x] Fixed #25465 -- Restored line breaks conversion in admin readonly fields.
Backport of 69208a5a1c from master
2015-12-29 19:56:23 -05:00
Markus Bertheau b51086d573 [1.8.x] Fixed #13008 -- Added more Cache-Control headers to never_cache() decorator.
Backport of 4a438e400b from master
2015-12-24 11:25:50 -05:00
Chris Lamb 91d46d2fb8 [1.8.x] Discouraged use of /tmp with predictable names.
The use of predictable filenames in /tmp often leads to symlink attacks
so remove the most obvious use of them in the docs.

Backport of 77b8d8cb6d from master
2015-12-24 09:57:02 -05:00
Claude Paroz 67a62703cc [1.8.x] Fixed #25915 -- Allowed language not in Django's default LANGUAGES
This fixes a regression introduced by a5f6cbce07.
Thanks Gavin Wahl for the report and Tim Graham for the review.
Backport of cd3c042b0 from master.
2015-12-18 17:53:16 +01:00
Simon Charette 4b02b433b7 [1.8.x] Fixed #25852 -- Made sure AlterModelManager forces a reload of its model state.
Thanks to Geoffrey Sechter and the Django NYC group for the report and Markus
for the review.

Backport of c4e372aaf4 from master
2015-12-15 14:55:05 -05:00
Federico Frenguelli 905e94a07e [1.8.x] Fixed #25412 -- Fixed missing PostgreSQL index on Char/TextField when using AlterField.
Thanks to Emanuele Palazzetti for the help.

Backport of 3a36c80795 from master
2015-12-10 16:29:00 -05:00
Tim Graham 4211f8c9d1 [1.8.x] Fixed #25711 -- Updated the project template's include() example.
Referencing URLs by dotted path is a stronger convention than
importing the URLs.

Backport of 179fbab7e0 from master
2015-12-09 11:47:26 -05:00
Amos Onn 0772bffd4a [1.8.x] Fixed #25896 -- Fixed state bug in SeparateDatabaseAndState.database_backwards().
Backport of 542b7f6c50 from master
2015-12-09 11:08:17 -05:00
Sergey Fedoseev e73406d165 [1.8.x] Refs #25846 -- Added stacklevel to SubfieldBase warning.
Backport of 64200c14e0 from stable/1.9.x
2015-12-02 19:33:01 -05:00
Gagaro 9582ba51bd [1.8.x] Fixed #25812 -- Restored the ability to use custom formats with the date template filter.
Backport of 34d88944f4 from master
2015-11-28 08:44:51 -05:00
Tim Graham 6914a716cb [1.8.x] Refs #25274 -- Added missing argument to contrib.gis' inspectdb. 2015-11-25 18:44:28 -05:00
Attila Tovt 3ec4e739dd [1.8.x] Fixed #25772 -- Corrected __len lookup on ArrayField for empty arrays.
Backport of 88fc9e2826 from master
2015-11-25 16:53:27 -05:00
Jacek Bzdak 834ad41472 [1.8.x] Fixed #25274 --- Made inspectdb handle renamed fields in unique_together.
Backport of 2cb50f935a from master
2015-11-25 13:17:24 -05:00
Tim Graham 843208990b [1.8.x] Post-release version bump. 2015-11-24 13:58:01 -05:00
Tim Graham 8dd33d4298 [1.8.x] Bumped version for 1.8.7 release. 2015-11-24 11:31:34 -05:00
Florian Apolloner 9f83fc2f66 [1.8.x] Fixed a settings leak possibility in the date template filter.
This is a security fix.
2015-11-24 11:31:10 -05:00
George Marshall 581b9e5047 [1.8.x] Fixed #25767 -- Fixed data truncation possibility with Positive(Small)IntegerField on MySQL.
Backport of 710e11d076 from master
2015-11-24 11:10:23 -05:00
Tim Graham 6d9f061b07 [1.8.x] Fixed #25786 -- Fixed set_FOO_order() crash with order_with_respect_to referencing OneToOneField pk.
Partial backport of 7bec480fe2 from master
2015-11-23 11:05:18 -05:00
Simon Charette 7c3ef19978 [1.8.x] Fixed #25685 -- Fixed a duplicate query regression on deletion of proxied models.
Thanks to Trac alias ppetrid for the report and Tim for the review.
2015-11-22 23:07:30 -05:00
Tim Graham 2179e5a2bc [1.8.x] Fixed #25715 -- Fixed Model.refresh_from_db() with ForeignKey w/on_delete=SET_NULL.
Backport of 54e2e688e1 from master
2015-11-21 11:41:06 -05:00
Chris Lamb b15eaa2963 [1.8.x] Corrected stacklevel in Engine deprecation warnings.
Otherwise we just see django.template.loader and not the "original"
callers.

Backport of ed95091561 from stable/1.9.x
2015-11-19 11:11:21 -05:00
Dmitry Dygalo e9c9f2ed82 [1.8.x] Fixed #25666 -- Fixed the exact lookup of ArrayField.
Backport of 263b3d2ba1 from master
2015-11-14 11:24:21 -05:00
Matthew Somerville 2c96b3da6f [1.8.x] Refs #24937 -- Backported more commits to fix for serialization of Date(Time)RangeField.
Instead of using DjangoJSONEncoder, use base_field's value_to_string().

Note this means the serialization of e.g. IntegerRangeField now has
strings for lower and upper, so use to_python when they came back in
(same behaviour as ArrayField, hopefully, from where I also got the
set_attributes_from_name function).

Backport of 86d9b10dc3 and
8a842148b6 from master
2015-11-12 09:22:44 -05:00
Matthew Somerville 3ded51bcf2 [1.8.x] Fixed #24937 -- Fixed serialization of Date(Time)RangeField.
Use the DjangoJSONEncoder so that datetime and date are encoded
appropriately.

Backport of 2926559cce from master
2015-11-11 16:53:26 -05:00
Simon Charette a3baee2f62 [1.8.x] Refs #25693 -- Avoided redundant calls to get_fields() in `to_attr` validation.
Backport of 4a9c32f5ee from master
2015-11-11 12:30:32 -05:00
Marti Raudsepp 9cdfdbdd1f [1.8.x] Fixed #25720 -- Made gettext() return bytestring on Python 2 if input is bytestring.
This is consistent with the behavior of Django 1.7.x and earlier.

Backport of d3e3703a15 from master
2015-11-11 08:57:46 -05:00
Tim Graham 43099f543e [1.8.x] Updated six to 1.10.0.
Backport of 4c593eaa5f from master
2015-11-11 06:54:11 -05:00
Ian Foote 5fc9a1b8bd [1.8.x] Fixed #25693 -- Prevented data loss with Prefetch and ManyToManyField.
Thanks to Jamie Matthews for finding and explaining the bug.

Backport of 4608573788 from master
2015-11-10 12:12:52 -05:00
David Filipovic 8c8a6d8a3f [1.8.x] Fixed #25618 -- Restored migration support for non-upgraded apps.
A non-upgraded app is one that retains South migrations in the
`migrations` module and doesn't introduce Django migrations.
2015-11-10 10:34:25 -05:00
Marti Raudsepp 3144785ebf [1.8.x] Fixed #25683 -- Allowed ModelChoiceField(queryset=...) to accept Managers.
This fixes a regression from refs #25496.

Backport of 1155843a41 from master
2015-11-09 12:47:08 -05:00
Josep Cugat a42c5376e7 [1.8.x] Fixed #25686 -- Fixed crash on routers without an allow_migrate() method.
Thanks Simon Charette for review.
2015-11-09 10:50:02 -05:00
Aymeric Augustin 94d13415d8 [1.8.x] Fixed debug view crash during autumn DST change.
This only happens if USE_TZ = False and pytz is installed (perhaps not
the most logical combination, but who am I to jugde?)

Refs #23714 which essentially fixed the same problem when USE_TZ = True.

Thanks Florian and Carl for insisting until I wrote a complete patch.

Backport of 1014ba026e from master
2015-11-07 23:18:59 +01:00
Tim Graham 617063e1a9 [1.8.x] Post-release version bump. 2015-11-04 18:10:01 +01:00
Tim Graham 80b7e9d09f [1.8.x] Bumped version for 1.8.6 release. 2015-11-04 15:28:20 +01:00
Simon Charette c42e4e736a Fixed #25622 -- Accounted for generic relations in the admin to field validation
Thanks to Jonathan Liuti for the report and Tim Graham for the review.

Conflicts:
	django/contrib/admin/options.py
2015-10-29 13:20:44 -04:00
Dheerendra Rathor 540de2f797 [1.8.x] Fixed #25620 -- Made URLValidator prohibit URLs with consecutive dots in the domain section.
Backport of 96fe90f535 from master
2015-10-29 11:14:36 -04:00
Tim Graham 65bff161ff [1.8.x] Fixed #25618 -- Added a helpful error message when Django & south migrations exist in the same directory. 2015-10-28 09:59:32 -04:00
Tim Graham 69e6045ceb [1.8.x] Fixed #25597 -- Fixed crash with SplitArrayField and IntegerField on invalid value.
Backport of 1f07da3e29 from master
2015-10-27 08:13:27 -04:00