Skip to content

Commit

Permalink
make doc string a bit more informative
Browse files Browse the repository at this point in the history
  • Loading branch information
phycodurus committed May 14, 2024
1 parent 92a67f9 commit 773a9c9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tom_observations/facility.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,13 @@ def __init__(self, *args, **kwargs):
self.button_layout()
)

def layout(self):
def layout(self) -> Layout:
"""Define (and return) a crispy_forms.Layout for the fields of your subclass.
It will be inserted after the common_layout and before the button_layout, as
defined above in __init__(), where self.helper.layout is assigned.
This method should be implemented in your subclass to define the layout of your form fields.
"""
return

def button_layout(self):
Expand Down

0 comments on commit 773a9c9

Please sign in to comment.