Re: Model equality in inheritance cases

2012-07-16 Thread charettes
nto the mix - > https://code.djangoproject.com/ticket/11154, it's related and has bit me > in > the past. > > -Original Message- > From: Anssi K��ri�inen > Sent: Monday, July 16, 2012 3:07 PM > To: Django developers > Subject: Model equality in inheri

Re: Model equality in inheritance cases

2012-07-16 Thread Daniel Sokolowski
I would also throw this ticket into the mix - https://code.djangoproject.com/ticket/11154, it's related and has bit me in the past. -Original Message- From: Anssi Kääriäinen Sent: Monday, July 16, 2012 3:07 PM To: Django developers Subject: Model equality in inheritance cases

Model equality in inheritance cases

2012-07-16 Thread Anssi Kääriäinen
I was looking through some old tickets, and spotted a case which I had worked on some time ago. The case is about model instance equality in different inheritance situations. There are three different cases to consider (assuming primary keys match): - should a proxy model be equal to its proxy pa