def en_format(name):
 from django.conf.locale.en import formats
 warnings.warn(("`django.forms.fields.DEFAULT_%s` is deprecated; use `django.utils.formats.get_format('%s')` instead." % (name, name)), PendingDeprecationWarning)
 return getattr(formats, name)

def en_format ( name ) : from django . conf . locale . en import formats warnings . warn ( ( "`django.forms.fields.DEFAULT_%s` is deprecated; use `django.utils.formats.get_format('%s')` instead." % ( name , name ) ) , PendingDeprecationWarning ) return getattr ( formats , name )
helper function to stay backward compatible .