Changes between Initial Version and Version 2 of Ticket #24254


Ignore:
Timestamp:
Jan 31, 2015, 1:29:03 PM (10 years ago)
Author:
Torsten Bronger
Comment:

You're right, my example was not minimal. I changed it so that only one model is defined.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24254 – Description

    initial v2  
    1 Consider the following models:
     1Consider the following model:
    22
    33{{{
    44from django.db import models
    55
    6 
    7 class Father(models.Model):
     6class MyModel(models.Model):
    87    name = models.CharField(max_length=200)
    9 
    10 
    11 class Son(Father):
    128
    139    class Meta:
     
    1814
    1915{{{
    20 Son.objects.filter(pk__in=Son.objects.all().distinct()[:10])
     16MyModel.objects.filter(pk__in=MyModel.objects.all().distinct()[:10])
    2117}}}
    2218
Back to Top