def get_partial_date_formats():
 warnings.warn("'django.utils.translation.get_partial_date_formats' is deprecated. Please update your code to use the new i18n aware formatting.", PendingDeprecationWarning)
 from django.conf import settings
 year_month_format = ugettext('YEAR_MONTH_FORMAT')
 month_day_format = ugettext('MONTH_DAY_FORMAT')
 if (year_month_format == 'YEAR_MONTH_FORMAT'):
  year_month_format = settings.YEAR_MONTH_FORMAT
 if (month_day_format == 'MONTH_DAY_FORMAT'):
  month_day_format = settings.MONTH_DAY_FORMAT
 return (year_month_format, month_day_format)

def get_partial_date_formats ( ) : warnings . warn ( "'django.utils.translation.get_partial_date_formats' is deprecated. Please update your code to use the new i18n aware formatting." , PendingDeprecationWarning ) from django . conf import settings year_month_format = ugettext ( 'YEAR_MONTH_FORMAT' ) month_day_format = ugettext ( 'MONTH_DAY_FORMAT' ) if ( year_month_format == 'YEAR_MONTH_FORMAT' ) : year_month_format = settings . YEAR_MONTH_FORMAT if ( month_day_format == 'MONTH_DAY_FORMAT' ) : month_day_format = settings . MONTH_DAY_FORMAT return ( year_month_format , month_day_format )
checks whether translation files provide a translation for some technical message id to store partial date formats .