Re: Equality check for two QuerySet

2022-05-11 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
> >> >> >> Mit freundlichen Grüßen, >> >> DI Mag. Maxim Danilov >> >> >> >> +43(681)207 447 76 >> >> ma...@wpsoft.at >> >> >> >> *From:* django-d...@googlegroups.com [mailto:django-d...@googlegroups.com] >

Re: Equality check for two QuerySet

2022-05-11 Thread mohamad ali mehdizadeh
; > +43(681)207 447 76 > > ma...@wpsoft.at > > > > *From:* django-d...@googlegroups.com [mailto:django-d...@googlegroups.com] > *On Behalf Of *mohamad ali mehdizadeh > *Sent:* Tuesday, May 10, 2022 5:09 PM > *To:* Django developers (Contributions to Django itself) < > dja

RE: Equality check for two QuerySet

2022-05-10 Thread Danilov Maxim
<mailto:ma...@wpsoft.at> ma...@wpsoft.at From: django-developers@googlegroups.com [mailto:django-developers@googlegroups.com] On Behalf Of mohamad ali mehdizadeh Sent: Tuesday, May 10, 2022 5:09 PM To: Django developers (Contributions to Django itself) Subject: Equality check for two Qu

Equality check for two QuerySet

2022-05-10 Thread mohamad ali mehdizadeh
Hi. Why we don't have __eq__ for QuerySets, here is an example: ``` qs1 = Model.objects.all() qs2 = qs1.all() qs1 == qs2 ``` output: False as we know these two are the same by value! -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions t