Informacje o wydaniu Django 1.9.5

April 1, 2016

Django 1.9.5 naprawia kilka błędów w 1.9.4.

Poprawki błędów

  • Made MultiPartParser ignore filenames that normalize to an empty string to fix crash in MemoryFileUploadHandler on specially crafted user input (#26325).
  • Naprawiono race condition w BaseCache.get_or_set() (#26332). Od teraz zwraca wartość default zamiast False jeśli wystąpi błąd podczas próby dodania wartości do cache.
  • Fixed data loss on SQLite where DurationField values with fractional seconds could be saved as None (#26324).
  • Formularze w contrib.auth już nie odcinają początkowych i końcowych białych znaków z pól haseł (#26334). Zmiana wymusza reset hasła dla osób, które ustawiły tego typu hasła po aktualizacji strony do Django 1.9. Zapewnia kompatybilność wsteczną dla wcześniejszych wersji Django.
  • Naprawiono wyciek pamięci w buforowanym loaderze szablonów (#26306).
  • Naprawiono regresję powodującą błąd w collectstatic --clear jeśli magazyn nie implementował path() (#26297).
  • Fixed a crash when using a reverse lookup with a subquery when a ForeignKey has a to_field set to something other than the primary key (#26373).
  • Fixed a regression in CommonMiddleware that caused spurious warnings in logs on requests missing a trailing slash (#26293).
  • Restored the functionality of the admin’s raw_id_fields in list_editable (#26387).
  • Fixed a regression with abstract model inheritance and explicit parent links (#26413).
  • Fixed a migrations crash on SQLite when renaming the primary key of a model containing a ForeignKey to 'self' (#26384).
  • Fixed JSONField inadvertently escaping its contents when displaying values after failed form validation (#25532).
Back to Top