Skip to content

Commit

Permalink
add detailed format parameter docstrings to DateWidget and TimeWidget (
Browse files Browse the repository at this point in the history
  • Loading branch information
cocorocho committed Jan 31, 2023
1 parent 9f568c9 commit 51d703b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions import_export/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ class DateWidget(Widget):
"""
Widget for converting date fields.
Takes optional ``format`` parameter.
Takes optional ``format`` parameter. If none is set, either
``settings.DATE_INPUT_FORMATS`` or ``"%Y-%m-%d"`` is used.
"""

def __init__(self, format=None):
Expand Down Expand Up @@ -239,7 +240,8 @@ class TimeWidget(Widget):
"""
Widget for converting time fields.
Takes optional ``format`` parameter.
Takes optional ``format`` parameter. If none is set, either
``settings.DATETIME_INPUT_FORMATS`` or ``"%H:%M:%S"`` is used.
"""

def __init__(self, format=None):
Expand Down

0 comments on commit 51d703b

Please sign in to comment.