Re: Fellow Reports - December 2022

2022-12-19 Thread Mariusz Felisiak
Week ending December 18, 2022 

*Triaged: *
   https://code.djangoproject.com/ticket/34204 - Django cannot load when 
Python is compiled with --without-doc-strings enabled (wontfix) 
   https://code.djangoproject.com/ticket/34208 - Confirm/Add support for 
GDAL 3.6. (created) 
   https://code.djangoproject.com/ticket/34209 - FileBasedCache has_key is 
susceptible to race conditions (accepted) 
   https://code.djangoproject.com/ticket/34212 - Redis cache client uses a 
read connection for incr operation (accepted) 
   https://code.djangoproject.com/ticket/34211 - Performance regression in 
ForeignKeyDeferredAttribute changes. (accepted) 
   https://code.djangoproject.com/ticket/34213 - Update PostgreSQL package 
names in docs (accepted) 
   https://code.djangoproject.com/ticket/34215 - Regression for 
autocomplete_fields in admin (worksforme) 
   https://code.djangoproject.com/ticket/34214 - Bug in default for 
TimeField when using a timezone (duplicate) 

*Reviewed/committed: *
   https://github.com/django/django/pull/16377 - Refs #33308 -- Moved 
psycopg2 imports to the psycopg_any module and added new hooks. 
   https://github.com/django/django/pull/16374 - Made urls.py docstring 
consistent with other files in project template. 
   https://github.com/django/django/pull/16378 - Fixed #34038 -- Improved 
color contrast for links in admin. 
   https://github.com/django/django/pull/16379 - Fixed #34209 -- Prevented 
FileBasedCache.has_key() crash caused by a race condition. 
   https://github.com/django/django/pull/16385 - Fixed #34213 -- Updated 
PostgreSQL package names in installing PostGIS docs. 
   https://github.com/django/django/pull/15687 - Fixed #33308 -- Added 
support for psycopg version 3. 
   https://github.com/django/django/pull/16386 - Fixed #34212 -- Made 
RedisCacheClient.incr() use write connection. 
   https://github.com/django/django/pull/16311 -  Fixed #34170 -- 
Implemented Heal The Breach (HTB) in GzipMiddleware. 

*Authored: *
   https://github.com/django/django/pull/16382 - Fixed #33961 -- Updated 
admin's jQuery to 3.6.2. 
   https://github.com/django/django/pull/16383 - Removed KyngChaos packages 
from docs. 
   https://github.com/django/django/pull/16387 - Fixed 
lookup.tests.LookupTests.test_exact_none_transform() test on Oracle.

Best,
Mariusz

>

-- 
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/73e5916a-4889-439c-94e6-9feb9cb49f45n%40googlegroups.com.


DEP 12 (Steering Council) Fully Adopted

2022-12-19 Thread Andrew Godwin
Hi everyone,

I am pleased to report that we've completed the extended approval process for 
DEP 12, which was needed since it was a governance change. Both the Technical 
Board and the DSF Board voted to not require a vote from the membership on the 
change, so it is now officially adopted and I will begin implementation 
immediately (which is mostly going to be renaming things).

Thanks everyone for your comments and help refining this DEP! You'll be hearing 
more from myself or one of the other Steering Council members soon about our 
first proper "call for feature proposals", as it'll be timed right after the 
4.2 feature freeze in January.

Andrew

-- 
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/89537c96-377d-4e86-8a8e-5ef738576ea2%40app.fastmail.com.


get_manager short ut function proposal

2022-12-19 Thread Ramez Ashraf
Hello everyone, 

I want to propose a helper function
`get_manager(parent_manager=None, *args, **kwargs)` 

A shortcut to return a manager, *args & **kwargs are passed to the manager 
.filter()
pass parent_manager to customize the parent manager, defaults to 
``Manager``.

it can be used like this 

from django.db.models import get_manager

class Person(models.Model):
# ...
authors = models.get_manager(role='A')
editors = models.get_manager(role='E')
special = get_manager(~Q(name="Roald Dahl"), role='E')
manager_with_counts = get_manager(parent_manager=PollManager, 
name="Roald Dahl")

Instead of the current 

class AuthorManager(models.Manager):
def get_queryset(self):
return super().get_queryset().filter(role='A')

class EditorManager(models.Manager):
def get_queryset(self):
return super().get_queryset().filter(role='E')

class Person(models.Model):
people = models.Manager()
authors = AuthorManager()
editors = EditorManager()
   ...

The first is more readable and nicer .. yeah ?
Code is working and ready at  github 

 ,  

Do i get +1(s) to move forward and create a ticket ? 


-- 
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/f0e4367d-8a7e-48da-b78c-35036015212fn%40googlegroups.com.