Skip to content

Commit 7aa9b9e

Browse files
author
Philipp Rieber
committed
add "hasser" tip for boolean getters
1 parent d3e63b3 commit 7aa9b9e

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
@@ -188,8 +188,9 @@ it into a format that's suitable for being rendered in an HTML form.
188188
``task`` property via the ``getTask()`` and ``setTask()`` methods on the
189189
``Task`` class. Unless a property is public, it *must* have a "getter" and
190190
"setter" method so that the form component can get and put data onto the
191-
property. For a Boolean property, you can use an "isser" method (e.g.
192-
``isPublished()``) instead of a getter (e.g. ``getPublished()``).
191+
property. For a Boolean property, you can use an "isser" or "hasser" method
192+
(e.g. ``isPublished()`` or ``hasReminder()``) instead of a getter (e.g.
193+
``getPublished()`` or ``getReminder()``).
193194

194195
.. index::
195196
single: Forms; Handling form submission

0 commit comments

Comments
 (0)