Added more docstrings to forms and fields
This commit is contained in:
parent
26dd863af8
commit
d04a7121df
20 changed files with 79 additions and 9 deletions
|
|
@ -7,8 +7,15 @@ except:
|
|||
import json
|
||||
|
||||
class JsonField(PhangoField):
|
||||
|
||||
"""Field for save json datatype values"""
|
||||
|
||||
def __init__(self, name, field_type, required=False):
|
||||
"""
|
||||
Args:
|
||||
name (str): The name of field
|
||||
field_type (PhangoField): The type of PhangoField for save in JsonField
|
||||
required (bool): Boolean for define if field is required or not
|
||||
"""
|
||||
|
||||
super().__init__(name, required)
|
||||
|
||||
|
|
@ -58,6 +65,7 @@ class JsonField(PhangoField):
|
|||
# You need check the values previously.
|
||||
|
||||
class JsonValueField(PhangoField):
|
||||
"""Field for save json mixed values. You need check the values previously, the field only check values for prevent sql injections."""
|
||||
|
||||
def __init__(self, name, required=False):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue