def get_unit_changes(request, unit_id):
 unit = get_object_or_404(Unit, pk=int(unit_id))
 unit.check_acl(request)
 return render(request, 'js/changes.html', {'last_changes': unit.change_set.all()[:10], 'last_changes_url': urlencode(unit.translation.get_kwargs())})

def get_unit_changes ( request , unit_id ) : unit = get_object_or_404 ( Unit , pk = int ( unit_id ) ) unit . check_acl ( request ) return render ( request , 'js/changes.html' , { 'last_changes' : unit . change_set . all ( ) [ : 10 ] , 'last_changes_url' : urlencode ( unit . translation . get_kwargs ( ) ) } )
returns units recent changes .