Re: drop-in replacement for admin module foreign key relation UI

2016-07-14 Thread muin
when I use this method, I can only use its id, So how can it show related model's field which has been defined in __str__ On Tuesday, February 17, 2015 at 3:20:22 PM UTC+8, Jani Tiainen wrote: > > On Mon, 16 Feb 2015 15:03:05 -0800 (PST) > Jani Kajala > wrote: > > > Hi all, > > > > I have ton

Re: 分享一个用python和javascript开发的Django: advanced network website

2016-07-14 Thread muin
我杭州的 On Thursday, July 14, 2016 at 7:31:45 PM UTC+8, Cherry Chen wrote: > > > > > 大家好,我是内地的,想知道这个群里是否有来自中国内地,香港和台湾的朋友。希望大家喜欢我的分享,多多交流。 > > > https://www.livecoding.tv/oli

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

2018-10-14 Thread muin
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) product = models.ForeignKey(Product, on_delete=models.CASCADE, related_name="product_specs", null

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

2018-10-15 Thread muin
This won't give you an answer but that might help you to find the issue. > > Good luck! > > On Mon, Oct 15, 2018, 03:38 muin > wrote: > >> Django 2.1.2, Postgres 10 >> >> Model: >> class Product(models.Model): >> product_id = models.AutoField("产

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

2018-10-15 Thread muin
call list(qs.annotate(...)[offset:offset+limit]) to force > the query set to execute. > > This won't give you an answer but that might help you to find the issue. > > Good luck! > > On Mon, Oct 15, 2018, 03:38 muin > wrote: > >> Django 2.1.2