Re: Django 4.1 alpha 1 released

2022-05-18 Thread אורי
Hi, In my code there is clean_fields with exclude as an optional argument: def clean_fields(self, exclude=None): """ Allows to have different slug and username validators for Entity and User. """ if (exclude is None): exclude = [] Is it still

Re: Django 4.1 alpha 1 released

2022-05-18 Thread אורי
Hi, Django 4.0 had this code: errors = {} if exclude is None: exclude = [] else: exclude = list(exclude) try: self.clean_fields(exclude=exclude) except ValidationError as e: errors =

Re: Experience with black formatting in django

2022-05-18 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi! Although the DEP for Black was written several years ago, we only actually adopted it in the code base in February this year. The DEP determined to use Black when it was no longer beta, and that took a while :) I think the reformatting was fairly popular, many people have given positive

Re: Performance does not scale when increasing file upload sizes

2022-05-18 Thread 'Noxx' via Django developers (Contributions to Django itself)
Hi Carlton, thanks for your response. I've opened up a PR: https://github.com/django/django/pull/15704 I've decided to moved the "ASGIStream" wrapper code into the Django code and get rid of the dependency as it is only a small part of it. My version of the code was nearly the same as the one

Django 4.1 alpha 1 released

2022-05-18 Thread Carlton Gibson
Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2022/may/18/django-41-alpha-1-released/ -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this