mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #22137 -- Made Widget.is_hidden a read-only property
Thanks django at patjack.co.uk for the report and the review.
This commit is contained in:
@@ -1100,6 +1100,9 @@ Miscellaneous
|
||||
This widget now respects the form field's ``is_required`` attribute like
|
||||
other widgets.
|
||||
|
||||
* ``Widget.is_hidden`` is now a read-only property, getting its value by
|
||||
introspecting the presence of ``input_type == 'hidden'``.
|
||||
|
||||
* :meth:`~django.db.models.query.QuerySet.select_related` now chains in the
|
||||
same way as other similar calls like ``prefetch_related``. That is,
|
||||
``select_related('foo', 'bar')`` is equivalent to
|
||||
|
||||
Reference in New Issue
Block a user