Re: Disabling dark / light mode UI toggle

2023-08-10 Thread Niccolò Mineo
23 alle 19:03:25 UTC+2 Carlton Gibson ha scritto: > Quite likely not, but such a niche feature isn’t worth the extra API > surface area, I’d likely think. > > On Wednesday, 9 August 2023, Niccolò Mineo wrote: > >> Yes, not pretty, though, right? >> >> Il giorn

Re: Disabling dark / light mode UI toggle

2023-08-09 Thread Niccolò Mineo
Yes, not pretty, though, right? Il giorno martedì 8 agosto 2023 alle 07:33:12 UTC+2 Adam Johnson ha scritto: > You should be able to disable the button by creating an empty > admin/color_theme_toggle.html template in your project. > > On Mon, Aug 7, 2023 at 10:28 PM Niccolò

Re: Disabling dark / light mode UI toggle

2023-08-07 Thread Niccolò Mineo
* I haven't found a convenient way, that is. Il giorno lunedì 7 agosto 2023 alle 23:26:11 UTC+2 Niccolò Mineo ha scritto: > There is a specific situation in which I wouldn't want the user to be able > to toggle between dark and light mode for the admin theme, and that is

Disabling dark / light mode UI toggle

2023-08-07 Thread Niccolò Mineo
There is a specific situation in which I wouldn't want the user to be able to toggle between dark and light mode for the admin theme, and that is if I heavily customized it. I haven't found a way to disable that specific toggle, so I suggest that an *AdminSite.ui_toggle* (or the like) boolean be

Re: Proposal for a "RegExpMatches" PostgreSQL ORM function

2023-01-18 Thread Niccolò Mineo
Okido, sorry about that. Il giorno martedì 17 gennaio 2023 alle 19:06:05 UTC+1 timog...@gmail.com ha scritto: > Hi, please consolidate your proposal when your ideas are complete. There's > no need to start a separate thread for every function. Also, please search > this mailing list and ticket

Proposal for a "RegExpMatches" PostgreSQL ORM function

2023-01-17 Thread Niccolò Mineo
How would you see adding the "REGEXP_MATCHES" function to the current set of PostgreSQL ORM functions? -- 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 emai

Proposal for a "ToTimestamp" PostgreSQL ORM function

2023-01-17 Thread Niccolò Mineo
How would you see adding the "TO_TIMESTAMP" function to the current set of PostgreSQL ORM functions? -- 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

Proposal for an "Age" PostgreSQL ORM function

2023-01-17 Thread Niccolò Mineo
How would you see adding the "AGE" function to the current set of PostgreSQL ORM functions? -- 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,

Proposal for an "Unnest" ORM function

2023-01-17 Thread Niccolò Mineo
How would you see adding the "UNNEST" PostgreSQL and Oracle functions to the current set of ORM functions? -- 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

Proposal for a "contained_by_any" PostgreSQL lookup

2023-01-17 Thread Niccolò Mineo
How would you see adding a lookup allowing "X <@ ANY(Y)" in contrib.postgres? -- 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

Re: Redirect type selection in django.contrib.redirects

2022-01-09 Thread Niccolò Mineo
I'd be happy to help and improve this part of Django, but I need some feedback from your side on the proposal above (and also how to improve it) to open a proper PR. Can you please give some? Il giorno giovedì 21 ottobre 2021 alle 08:58:06 UTC+2 Niccolò Mineo ha scritto: > Ex

Re: Combining multiple aggregations with annotate()

2022-01-05 Thread Niccolò Mineo
I would be in favor of a real time information about the issue. Il giorno mercoledì 5 gennaio 2022 alle 15:13:17 UTC+1 Yonas ha scritto: > Hello, > > There's a ticket opened 13 > years ago explaining a problem with combining multiple aggregations with

Re: Passing an integer-only key to KeyTransform

2021-12-27 Thread Niccolò Mineo
I ended up using the JSONB_EXTRACT_PATH function (I am using Postgres), although it's a pity not to be able to use KeyTransform in this situation. Il giorno lunedì 27 dicembre 2021 alle 10:59:22 UTC+1 Mariusz Felisiak ha scritto: > Hi, > > Integers (and strings that can be cast to integers) on

Passing an integer-only key to KeyTransform

2021-12-27 Thread Niccolò Mineo
On a Django 3.2 installation, I am trying to pass a stringified integer-only zip code as the key_name argument to KeyTransform: >>> stats_qs = stats.annotate(municipality_stats=KeyTransform("66049", "data")).values("municipality_stats") As highlighted above, it fails to work. The reason, as yo

Re: Redirect type selection in django.contrib.redirects

2021-10-20 Thread Niccolò Mineo
, new_path=r.new_path) Il giorno giovedì 21 ottobre 2021 alle 08:56:44 UTC+2 Niccolò Mineo ha scritto: > Elaborating on the original proposal to make it backwards compatible, I > was thinking along the lines of checking in the middleware whether the > response_redirect_class attribute is set wit

Re: Redirect type selection in django.contrib.redirects

2021-10-20 Thread Niccolò Mineo
the response_gone_class would be the attribute to check, of course. Il giorno sabato 16 ottobre 2021 alle 23:50:26 UTC+2 Niccolò Mineo ha scritto: > I just opened a ticket with the related PR: > https://code.djangoproject.com/ticket/33206 > > Il giorno mercoledì 6 ottobre 2021 al

Re: Redirect type selection in django.contrib.redirects

2021-10-20 Thread Niccolò Mineo
the response_gone_class would be the attribute to check, of course. What do you think? Il giorno giovedì 21 ottobre 2021 alle 08:53:31 UTC+2 Niccolò Mineo ha scritto: > For 410 status codes, the attribute to check would be the > response_gone_class, of course. > > Il giorno gioved

Re: Redirect type selection in django.contrib.redirects

2021-10-20 Thread Niccolò Mineo
For 410 status codes, the attribute to check would be the response_gone_class, of course. Il giorno giovedì 21 ottobre 2021 alle 08:43:12 UTC+2 Niccolò Mineo ha scritto: > Elaborating on the original proposal to make it backwards compatible, I > was thinking along the lines of checking

Re: Redirect type selection in django.contrib.redirects

2021-10-20 Thread Niccolò Mineo
ended to the 410, as well. What do you think? Il giorno sabato 16 ottobre 2021 alle 23:50:26 UTC+2 Niccolò Mineo ha scritto: > I just opened a ticket with the related PR: > https://code.djangoproject.com/ticket/33206 > > Il giorno mercoledì 6 ottobre 2021 alle 23:55:51 UTC+

Re: Redirect type selection in django.contrib.redirects

2021-10-20 Thread Niccolò Mineo
think? Il giorno sabato 16 ottobre 2021 alle 23:50:26 UTC+2 Niccolò Mineo ha scritto: > I just opened a ticket with the related PR: > https://code.djangoproject.com/ticket/33206 > > Il giorno mercoledì 6 ottobre 2021 alle 23:55:51 UTC+2 Adam Johnson ha > scritto: > >>

Re: Changelist links for proxy model admins

2021-10-20 Thread Niccolò Mineo
and more visually with > a screenshot or two. > > To me it sounds like "the admin links to the wrong place for proxy models" > which sounds like a plain bug, and if that is the case you could directly > open a ticket. > > —Adam > > On Sun, 17 Oct 2021 at 16:00,

Changelist links for proxy model admins

2021-10-17 Thread Niccolò Mineo
Hi. When one is displaying a proxy model admin I think It could be nice to automatically override the default behaviour for instances in the changelist and have them redirect to the proxy URL, instead of the default, non-proxy one. What do you think? I can prepare a PR. -- You received this

Re: Redirect type selection in django.contrib.redirects

2021-10-16 Thread Niccolò Mineo
I just opened a ticket with the related PR: https://code.djangoproject.com/ticket/33206 Il giorno mercoledì 6 ottobre 2021 alle 23:55:51 UTC+2 Adam Johnson ha scritto: > This seems like a reasonable addition to me. > > On Fri, 24 Sept 2021 at 08:08, Niccolò Mineo wrote: > >>

Redirect type selection in django.contrib.redirects

2021-09-24 Thread Niccolò Mineo
Hi. The marketing guys at my workplace asked for the ability to customise the redirect type (301, 302) when creating redirects in the admin and I shipped this change a while ago. I believe this could be a nice addition to Django itself, too. What do you think? -- You received this message

Changelist links for proxy model admins

2021-09-24 Thread Niccolò Mineo
Hi. When one is displaying a proxy model admin I think It could be nice to have a boolean attribute on the ModelAdmin to override the default changelist behaviour for instance links and have them redirect to the proxy URL. -- You received this message because you are subscribed to the Google G