Accessibility standards & contribution guidelines for Django

2021-06-14 Thread Thibaud Colas
Hi django-developers, This is a long-overdue follow up to DEP 11 and the creation of Django’s accessibility team. As part of implementing what this DEP outlines, we need to discuss what accessibility standards

Re: Default change password UX: area for improvements

2021-06-14 Thread Thibaud Colas
Good idea! I think it’s worth mentioning as well the current link’s styles wouldn’t pass accessibility guidelines, as there isn’t enough contrast between the link color and surrounding text color, and the choice of words doesn’t make the link very identifiable either. This would need to remain

Re: A base compression middleware class

2021-06-14 Thread Curtis Maloney
Hi Illia, I like the idea here, and your design looks sensible at first blush, but I feel conflicted. As much as I like the idea of allowing more flexibility and future-proofing this middleware, AIUI the gzip middleware is generally discouraged, as it's typically more efficient to have your

A base compression middleware class

2021-06-14 Thread Illia Volochii
Hi all, There is `GZipMiddleware` that compresses response bodies using gzip. https://github.com/django/django/blob/main/django/middleware/gzip.py But there are other algorithms supported by browsers (e.g., Brotli). At the moment, if somebody wants to add support for any of them in a Django

Re: `Model.validate_unique` excluding partial unique constraint

2021-06-14 Thread Gaga Ro
Thanks, it clears things a lot. I'll try my hand at it when I'll have some more time available. Le jeudi 10 juin 2021 à 06:00:17 UTC+2, charettes a écrit : > Alright so here's for a few hints about I believe things should be done. > > First things first Lookup must be made a subclass of

Re: Django models `EmailField` default is empty string - Not `None` (or Null) . Why ?

2021-06-14 Thread Aymeric Augustin
Hello, https://docs.djangoproject.com/en/3.2/ref/models/fields/#django.db.models.Field.null should clarify the situation. -- Aymeric. > On 13 Jun 2021, at 13:17, Carlos Leite wrote: > > > Yesterday I