Added docstrings to BaseForm clasess

This commit is contained in:
Antonio de la Rosa 2022-05-06 14:25:58 +02:00
parent fced4d5756
commit 26dd863af8
6 changed files with 31 additions and 0 deletions

View file

@ -8,8 +8,15 @@ env=env_theme(__file__)
t=PTemplate(env)
class FileForm(BaseForm):
"""Class for create a form for upload files. You shoud set enctype to True in your model for it"""
def __init__(self, name, value, path):
"""
Args:
name (str): The html name for this form
value (str): The default value of this html form.
path (str): The path where the file will be saved.
"""
super().__init__(name, value)