Hi Carlton,

The list of formats on
https://github.com/django/django/blob/master/django/utils/formats.py#L31-L46
is:

FORMAT_SETTINGS = frozenset([
    'DECIMAL_SEPARATOR',
    'THOUSAND_SEPARATOR',
    'NUMBER_GROUPING',
    'FIRST_DAY_OF_WEEK',
    'MONTH_DAY_FORMAT',
    'TIME_FORMAT',
    'DATE_FORMAT',
    'DATETIME_FORMAT',
    'SHORT_DATE_FORMAT',
    'SHORT_DATETIME_FORMAT',
    'YEAR_MONTH_FORMAT',
    'DATE_INPUT_FORMATS',
    'TIME_INPUT_FORMATS',
    'DATETIME_INPUT_FORMATS',
])

Is there a way to extend it and add more values?

אורי
u...@speedy.net


On Mon, Dec 2, 2019 at 5:35 PM Carlton Gibson <carlton.gib...@gmail.com>
wrote:

> Hi Uri.
>
> On Monday, 2 December 2019 16:19:11 UTC+1, Uri wrote:
>>
>> I don't understand how this is related to Custom Format Files.
>>
>
> Well in the SO post you linked you say this:
>
> > I want to override the default values of DATE_FORMAT and
> MONTH_DAY_FORMAT in English, but keep the default values (or define them
> again) in Hebrew.
>
> In the docs I linked you to it says this:
>
> > Django provides format definitions for many locales, but sometimes you
> might want to create your own, because a format files doesn’t exist for
> your locale, or because you want to overwrite some of the values.
>
> So that looks exactly like what you need.
>
> No?
>
> (Sorry if I've missed your point — it's sometimes hard to see what folks
> are getting at just from links and commits. 😬)
>
> Kind Regards,
>
> Carlton
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/364d0c49-2c1b-44ea-819c-6aedc5a6b0bc%40googlegroups.com
> <https://groups.google.com/d/msgid/django-developers/364d0c49-2c1b-44ea-819c-6aedc5a6b0bc%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CABD5YeEDUjpzxgEwUh%3D%2BFsKjvD8Wx6s1S%2B-HY2nfmFo_WUv2KA%40mail.gmail.com.

Reply via email to