def owner_list(request):
    owners = models.Owner.objects.select_related('user_location').all()
    upgradeable_users = models.Owner.objects.filter(unmanagedsystem__date_purchased__lt=datetime.now() - timedelta(days=730)).distinct().count()
    return render_to_response('user_systems/owner_list.html', {
            'owner_list': owners,
            'upgradeable_users':upgradeable_users,
           },
           RequestContext(request))
dataset/ETHPy150Open mozilla/inventory/user_systems/views.py/owner_list/original