django-batch-select icon indicating copy to clipboard operation
django-batch-select copied to clipboard

Support Python 3

Open cool-RR opened this issue 10 years ago • 3 comments

cool-RR avatar Feb 26 '15 23:02 cool-RR

Given Python 3 support was only added to Django after they added prefetch_related how useful is adding Python 3 support to batch select?

Also I'm not actually using Python 3 in anger yet, so pull requests and help would be nice...

lilspikey avatar Feb 27 '15 09:02 lilspikey

Maybe I've misunderstood django-batch-select, please clarify: When I use django-batch-select, does it add another query (like Django's prefetch_related) or does it fetch by adding more SQL code to the existing query (like Django's select_related)?

On Fri, Feb 27, 2015 at 11:52 AM, John Montgomery [email protected] wrote:

Given Python 3 support was only added to Django after they added prefetch_related https://docs.djangoproject.com/en/1.7/ref/models/querysets/#django.db.models.query.QuerySet.prefetch_related how useful if adding Python 3 support to batch select?

Also I'm not actually using Python 3 in anger yet, so pull requests and help would be nice...

— Reply to this email directly or view it on GitHub https://github.com/lilspikey/django-batch-select/issues/12#issuecomment-76366038 .

cool-RR avatar Feb 27 '15 11:02 cool-RR

Oh, I see now that it adds an extra query, sorry, I should have read the docs. So it doesn't help me, I was looking for a way to do it without adding another query. Thanks anyway!

On Fri, Feb 27, 2015 at 1:24 PM, Ram Rachum [email protected] wrote:

Maybe I've misunderstood django-batch-select, please clarify: When I use django-batch-select, does it add another query (like Django's prefetch_related) or does it fetch by adding more SQL code to the existing query (like Django's select_related)?

On Fri, Feb 27, 2015 at 11:52 AM, John Montgomery < [email protected]> wrote:

Given Python 3 support was only added to Django after they added prefetch_related https://docs.djangoproject.com/en/1.7/ref/models/querysets/#django.db.models.query.QuerySet.prefetch_related how useful if adding Python 3 support to batch select?

Also I'm not actually using Python 3 in anger yet, so pull requests and help would be nice...

— Reply to this email directly or view it on GitHub https://github.com/lilspikey/django-batch-select/issues/12#issuecomment-76366038 .

cool-RR avatar Feb 27 '15 11:02 cool-RR