Skip to content

Commit 5c1bcf8

Browse files
committed
Merge pull request #1958 from bicpi/add_hasser_tip_for_boolean_getters
Add "hasser" tip for boolean getters
2 parents 36d8ab4 + 7aa9b9e commit 5c1bcf8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

book/forms.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,9 @@ it into a format that's suitable for being rendered in an HTML form.
186186
``task`` property via the ``getTask()`` and ``setTask()`` methods on the
187187
``Task`` class. Unless a property is public, it *must* have a "getter" and
188188
"setter" method so that the form component can get and put data onto the
189-
property. For a Boolean property, you can use an "isser" method (e.g.
190-
``isPublished()``) instead of a getter (e.g. ``getPublished()``).
189+
property. For a Boolean property, you can use an "isser" or "hasser" method
190+
(e.g. ``isPublished()`` or ``hasReminder()``) instead of a getter (e.g.
191+
``getPublished()`` or ``getReminder()``).
191192

192193
.. index::
193194
single: Forms; Handling form submission

0 commit comments

Comments
 (0)