10348 add documentation

This commit is contained in:
Arthur 2022-09-28 16:13:22 -07:00
parent ad6d4f892d
commit 26946b2461
2 changed files with 3 additions and 2 deletions

View File

@ -13,6 +13,7 @@ Custom fields may be created by navigating to Customization > Custom Fields. Net
* Text: Free-form text (intended for single-line use)
* Long text: Free-form of any length; supports Markdown rendering
* Integer: A whole number (positive or negative)
* Decimal: A fixed-precision decimal number (4 decimal places)
* Boolean: True or false
* Date: A date in ISO 8601 format (YYYY-MM-DD)
* URL: This will be presented as a link in the web UI

View File

@ -323,8 +323,8 @@ class CustomField(CloningMixin, ExportTemplatesMixin, WebhooksMixin, ChangeLogge
field = forms.DecimalField(
required=required,
initial=initial,
max_digits=10,
decimal_places=2,
max_digits=12,
decimal_places=4,
)
# Boolean