Django 1.11.3 released

Popular Python framework received new update, which brings cool new features and bugfixes 
05 July 2017   1457
Django

A high-level, free and open source Python Web framework that encourages rapid and clean development with  pragmatic design.
 

Python

Is a multi-paradigm programming language with easy-to-use syntax and many features.

Good news for all Python coders and Django users. It has new 1.11.3 version now.

List of fixed issues

  • Removed an incorrect deprecation warning about a missing renderer argument if a Widget.render() method accepts **kwargs.
  • Fixed a regression causing Model.__init__() to crash if a field has an instance only descriptor.
  • Fixed an incorrect DisallowedModelAdminLookup exception when using a nested reverse relation in list_filter.
  • Fixed admin’s FieldListFilter.get_queryset() crash on invalid input.
  • Fixed invalid HTML for a required AdminFileWidget.
  • Fixed model initialization to set the name of class-based model indexes for models that only inherit models.Model.
  • Fixed crash in admin’s inlines when a model has an inherited non-editable primary key.
  • Fixed QuerySet.union()intersection(), and difference() when combining with an EmptyQuerySet.
  • Prevented Paginator’s unordered object list warning from evaluating a QuerySet.
  • Fixed the value of redirect_field_name in LoginView’s template context. It’s now an empty string (as it is for the original function-based login() view) if the corresponding parameter isn’t sent in a request (in particular, when the login page is accessed directly).
  • Prevented attribute values in the django/forms/widgets/attrs.html template from being localized so that numeric attributes (e.g. max and min) of NumberInput work correctly.
  • Removed casting of the option value to a string in the template context of the CheckboxSelectMultipleNullBooleanSelectRadioSelectSelectMultiple, and Select widgets. In Django 1.11.1, casting was added in Python to avoid localization of numeric values in Django templates, but this made some use cases more difficult. Casting is now done in the template using the |stringformat:'s' filter.
  • Prevented a primary key alteration from adding a foreign key constraint if db_constraint=False.
  • Fixed UnboundLocalError crash in RenameField with nonexistent field.
  • Fixed a regression preventing a model field’s limit_choices_to from being evaluated when a ModelForm is instantiated.

Django 2.2 to be Available

Good news - Django 2.2 is classified as a long-term issue and will receive updates until April 2022
02 April 2019   379

Django 2.2 web framework, written in Python and intended for developing web applications, is finally out. Django 2.2 is classified as a long-term issue and will receive updates until April 2022. LTS-branch 1.11 will be supported until April 2020, and branch 2.1 until December 2019. Support for branch 2.0 has been discontinued.

Key improvements:

  • New CheckConstraint and UniqueConstraint classes have been added that allow the model to define its own database access restrictions using the Meta.constraints option;
  • In the runserver, the Watchman framework is used to increase the performance of tracking changes in a large number of files;
  • Added an HttpRequest.headers object for quick access to HTTP headers sent during a request (for example, request.headers ['User-Agent']).