Skip to content

Commit

Permalink
[docfix] d3.format docs have moved
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Oct 21, 2016
1 parent e9d4749 commit 62e0e19
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions caravel/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
'"%Y-%m-%d %H:%M:%S" | 2019-01-14 01:32:10'),
("%H:%M:%S", '"%H:%M:%S" | 01:32:10'),
]
D3_FORMAT_DOCS = _(
"D3 format syntax "
"https://github.com/d3/d3-format")


class BetterBooleanField(BooleanField):
Expand Down Expand Up @@ -527,9 +530,7 @@ def __init__(self, viz):
('+,', '"+," | +12,345.4321'),
('$,.2f', '"$,.2f" | $12,345.43'),
],
"description": _("D3 format syntax for numbers "
"https: //github.com/mbostock/\n"
"d3/wiki/Formatting")
"description": D3_FORMAT_DOCS,
}),
'row_limit': (FreeFormSelectField, {
"label": _('Row limit'),
Expand Down Expand Up @@ -657,9 +658,7 @@ def __init__(self, viz):
"label": _("X axis format"),
"default": 'smart_date',
"choices": TIMESTAMP_CHOICES,
"description": _("D3 format syntax for y axis "
"https: //github.com/mbostock/\n"
"d3/wiki/Formatting")
"description": D3_FORMAT_DOCS,
}),
'y_axis_format': (FreeFormSelectField, {
"label": _("Y axis format"),
Expand All @@ -672,9 +671,7 @@ def __init__(self, viz):
('+,', '"+," | +12,345.4321'),
('$,.2f', '"$,.2f" | $12,345.43'),
],
"description": _("D3 format syntax for y axis "
"https: //github.com/mbostock/\n"
"d3/wiki/Formatting")
"description": D3_FORMAT_DOCS,
}),
'markup_type': (SelectField, {
"label": _("Markup Type"),
Expand Down

0 comments on commit 62e0e19

Please sign in to comment.