Merge pull request #532 from expsa/hr_custom

Update __init__.py
This commit is contained in:
zainab2097 2024-08-05 15:53:06 +03:00 committed by GitHub
commit 31082d9ebe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ _logger = logging.getLogger(__name__)
def format_date(env, value, lang_code=False, date_format=False):
if not value:
return ''
if isinstance(value, pycompat.string_types):
if isinstance(value, str):
if len(value) < DATE_LENGTH:
return ''
if len(value) > DATE_LENGTH: