Re: QuerySet.iterator together with prefetch_related because of chunk_size

2018-10-15 Thread tobias . kroenke
Thank you for your feedback. I would like to answer some statements to either convince you or make it more clear, where my idea stems from: The fundamental reason why iterator() cannot be used with > prefetch_related() is that the latter requires a set of model instance to > be materialized to

Re: Fellow Reports - October 2018

2018-10-15 Thread Tim Graham
Week ending October 13, 2018 Triaged --- https://code.djangoproject.com/ticket/29790 - Migration that switches a model to a UUID primary key fails with "duplicate column name: id" (accepted) https://code.djangoproject.com/ticket/29834 - Union queryset with ordering breaks on ordering w

Re: invalid literal for int() with base 10: ''

2018-10-15 Thread Moses Mugisha
Can you post to stackoverflow instead?. You are probably passing a string instead of an integer hence the conversion error. Best Moses On Mon, Oct 15, 2018 at 4:47 PM Naamara Hannington wrote: > > Hey guys. I am developing a django ecommerce site but whenever I click on > continue to pay butt

Re: column "" must appear in the GROUP BY clause or be used in an aggregate function

2018-10-15 Thread Kotha bondhu Mithun
sorry friendiam also try it On Mon, Oct 15, 2018 at 7:37 AM 徐军明 wrote: > Django 2.1.2, Postgres 10 > > Model: > class Product(models.Model): > product_id = models.AutoField("产品ID", primary_key=True) > ... > > class SpecItem(models.Model): > spec_id = models.AutoField(primary_key=True) > pro

Re: invalid literal for int() with base 10: ''

2018-10-15 Thread Adam Johnson
This mailing list is for the development of Django itself, not for support. Use the django-users mailing list for that, or IRC #django on freenode, or a site like Stack Overflow. On Mon, 15 Oct 2018 at 14:57, Moses Mugisha wrote: > Can you post to stackoverflow instead?. You are probably passi

Re: column "" must appear in the GROUP BY clause or be used in an aggregate function

2018-10-15 Thread Adam Johnson
This mailing list is for the development of Django itself, not for support. Use the django-users mailing list for that, or IRC #django on freenode, or a site like Stack Overflow. On Mon, 15 Oct 2018 at 02:36, 徐军明 wrote: > Django 2.1.2, Postgres 10 > > Model: > class Product(models.Model): > prod