mirror of
https://github.com/django/django.git
synced 2025-09-15 06:55:32 +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:
parent
75d0dcbf84
commit
a19f0d0c1e
3 changed files with 23 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue