Changes between Version 1 and Version 3 of Ticket #28422


Ignore:
Timestamp:
Jul 21, 2017, 8:34:18 AM (7 years ago)
Author:
Debanshu Kundu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28422

    • Property Component UncategorizedDatabase layer (models, ORM)
    • Property Resolutionduplicate
    • Property Status newclosed
    • Property Type UncategorizedNew feature
  • Ticket #28422 – Description

    v1 v3  
    4040).extra(select={'kill_count': 'SnakeKillAggr.kill_count'})
    4141
    42 print queryset.values('name', 'age', 'length', 'sex', 'egg_count', 'kill_count')
     42print(queryset.values('name', 'age', 'length', 'sex', 'egg_count', 'kill_count'))
    4343}}}
    4444
     
    5252
    5353{{{
    54 print Snake.objects.filter(pk__in=snake_pks).annotate(egg_count=Count('egg__id'), kill_count=Count('kill__id')).values('name', 'age', 'length', 'sex', 'egg_count', 'kill_count''egg_count', 'kill_count')
     54print(Snake.objects.filter(pk__in=snake_pks).annotate(egg_count=Count('egg__id'), kill_count=Count('kill__id')).values('name', 'age', 'length', 'sex', 'egg_count', 'kill_count''egg_count', 'kill_count'))
    5555}}}
    5656
Back to Top