Changes between Initial Version and Version 2 of Ticket #24254
- Timestamp:
- Jan 31, 2015, 1:29:03 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #24254 – Description
initial v2 1 Consider the following model s:1 Consider the following model: 2 2 3 3 {{{ 4 4 from django.db import models 5 5 6 7 class Father(models.Model): 6 class MyModel(models.Model): 8 7 name = models.CharField(max_length=200) 9 10 11 class Son(Father):12 8 13 9 class Meta: … … 18 14 19 15 {{{ 20 Son.objects.filter(pk__in=Son.objects.all().distinct()[:10])16 MyModel.objects.filter(pk__in=MyModel.objects.all().distinct()[:10]) 21 17 }}} 22 18